Remove unused imports throughout src/

This commit is contained in:
Alex Crichton 2013-02-27 00:10:03 -05:00
parent 55461d888f
commit dfb5c10dea
214 changed files with 19 additions and 626 deletions

View file

@ -102,8 +102,6 @@ use opt_vec::OptVec;
use ext::build;
use core::vec;
use std::oldmap;
use std::oldmap::HashMap;
// Transitional reexports so qquote can find the paths it is looking for
mod syntax {

View file

@ -19,7 +19,6 @@ use ext;
use parse;
use parse::{parser, token};
use core::io;
use core::vec;
use core::hashmap::linear::LinearMap;

View file

@ -16,10 +16,8 @@ use codemap::span;
use ext::base::ext_ctxt;
use ext::build;
use opt_vec;
use opt_vec::OptVec;
use core::dvec;
use core::option;
pub struct Field {

View file

@ -28,7 +28,6 @@ use codemap::{span, spanned};
use parse::token::special_idents::clownshoes_extensions;
use ast_util;
use opt_vec;
use opt_vec::OptVec;
use core::dvec;
use core::uint;

View file

@ -24,7 +24,6 @@ use parse::{parser, parse_item_from_source_str, new_parser_from_tts};
use core::option;
use core::vec;
use core::hashmap::LinearMap;
pub fn expand_expr(extsbox: @mut SyntaxEnv,
cx: ext_ctxt,

View file

@ -17,9 +17,7 @@ use core::prelude::*;
use ast::{ident, node_id};
use ast;
use ast_util::{ident_to_path};
use ast_util;
use attr;
use codemap::{span, respan, dummy_sp, spanned};
use codemap;
use ext::base::{ext_ctxt, mk_ctxt};

View file

@ -44,7 +44,6 @@ FIXME (#3072) - This is still incomplete.
*/
use ast;
use ast::tt_delim;
use codemap::span;
use ext::base;
use ext::base::ext_ctxt;

View file

@ -11,7 +11,6 @@
// Parsing pipes protocols from token trees.
use ast_util;
use ext::pipes::pipec::*;
use ext::pipes::proto::*;
use parse::common::SeqSep;
use parse::parser;

View file

@ -11,19 +11,15 @@
// A protocol compiler for Rust.
use ast;
use ast::ident;
use codemap::{dummy_sp, spanned};
use ext::base::ext_ctxt;
use ext::pipes::ast_builder::{append_types, ext_ctxt_ast_builder, path};
use ext::pipes::ast_builder::{path_global};
use ext::pipes::proto::*;
use ext::quote::rt::*;
use parse::*;
use util::interner;
use opt_vec;
use opt_vec::OptVec;
use core::dvec::DVec;
use core::prelude::*;
use core::str;
use core::to_str::ToStr;
@ -342,7 +338,7 @@ impl gen_init for protocol {
};
cx.parse_item(fmt!("pub fn init%s() -> (client::%s, server::%s)\
{ use core::pipes::HasBuffer; %s }",
{ pub use core::pipes::HasBuffer; %s }",
start_state.generics.to_source(cx),
start_state.to_ty(cx).to_source(cx),
start_state.to_ty(cx).to_source(cx),

View file

@ -15,7 +15,6 @@ use codemap::span;
use ext::base::ext_ctxt;
use ext::pipes::ast_builder::{append_types, ext_ctxt_ast_builder, path};
use core::cmp;
use core::to_str::ToStr;
#[deriving_eq]

View file

@ -9,7 +9,6 @@
// except according to those terms.
use ast;
use attr;
use codemap::{BytePos, Pos, span};
use ext::base::ext_ctxt;
use ext::base;
@ -19,7 +18,6 @@ use parse::token;
use parse;
use core::prelude::*;
use core::str;
/**
*
@ -34,7 +32,6 @@ use core::str;
pub mod rt {
use ast;
use codemap;
use ext::base::ext_ctxt;
use parse;
use print::pprust;

View file

@ -13,7 +13,6 @@ use ast;
use ast::{matcher, match_tok, match_seq, match_nonterminal, ident};
use codemap::{BytePos, mk_sp};
use codemap;
use parse::common::*; //resolve bug?
use parse::lexer::*; //resolve bug?
use parse::ParseSess;
use parse::parser::Parser;
@ -22,8 +21,6 @@ use parse::token;
use core::dvec::DVec;
use core::dvec;
use core::io;
use core::option;
use core::option::{Option, Some, None};
use core::str;
use core::uint;

View file

@ -26,7 +26,6 @@ use parse::token::{FAT_ARROW, SEMI, LBRACE, RBRACE, nt_matchers, nt_tt};
use print;
use core::io;
use std::oldmap::HashMap;
pub fn add_new_extension(cx: ext_ctxt, sp: span, name: ident,
arg: ~[ast::token_tree]) -> base::MacResult {

View file

@ -12,7 +12,6 @@ use core::prelude::*;
use ast;
use ast::{token_tree, tt_delim, tt_tok, tt_seq, tt_nonterminal,ident};
use ast_util;
use codemap::{span, dummy_sp};
use diagnostic::span_handler;
use ext::tt::macro_parser::{named_match, matched_seq, matched_nonterminal};
@ -22,7 +21,6 @@ use parse::lexer::TokenAndSpan;
use core::option;
use core::vec;
use std;
use std::oldmap::HashMap;
/* FIXME #2811: figure out how to have a uniquely linked stack, and change to
`~` */