removed unused imports (and one unused argument)

This commit is contained in:
John Clements 2013-06-04 11:09:18 -07:00
parent 367eddf5b1
commit 8dad2bb281
15 changed files with 14 additions and 26 deletions

View file

@ -15,7 +15,7 @@ use codemap::span;
use ext::base::*;
use ext::base;
use parse::token;
use parse::token::{get_ident_interner, str_to_ident};
use parse::token::{str_to_ident};
pub fn expand_syntax_ext(cx: @ExtCtxt, sp: span, tts: &[ast::token_tree])
-> base::MacResult {

View file

@ -25,7 +25,7 @@ use ext::build::AstBuilder;
use core::option;
use core::unstable::extfmt::ct::*;
use core::vec;
use parse::token::{get_ident_interner, str_to_ident};
use parse::token::{str_to_ident};
pub fn expand_syntax_ext(cx: @ExtCtxt, sp: span, tts: &[ast::token_tree])
-> base::MacResult {

View file

@ -52,7 +52,6 @@ use ext::pipes::pipec::gen_init;
use ext::pipes::proto::visit;
use parse::lexer::{new_tt_reader, reader};
use parse::parser::Parser;
use parse::token::{get_ident_interner};
use core::option::None;
pub mod ast_builder;

View file

@ -17,7 +17,7 @@ use ext::pipes::proto::*;
use parse::common::SeqSep;
use parse::parser;
use parse::token;
use parse::token::{get_ident_interner, interner_get};
use parse::token::{interner_get};
pub trait proto_parser {
fn parse_proto(&self, id: ~str) -> protocol;

View file

@ -17,7 +17,6 @@ use ext::base;
use parse::lexer::{new_tt_reader, reader};
use parse::parser::Parser;
use parse::token::keywords;
use parse::token::{get_ident_interner};
use core::vec;

View file

@ -93,7 +93,6 @@ pub fn add_new_extension(cx: @ExtCtxt,
let mut best_fail_msg = ~"internal error: ran no matchers";
let s_d = cx.parse_sess().span_diagnostic;
let itr = get_ident_interner();
for lhses.eachi |i, lhs| { // try each arm's matchers
match *lhs {

View file

@ -15,8 +15,8 @@ use ast::{token_tree, tt_delim, tt_tok, tt_seq, tt_nonterminal,ident};
use codemap::{span, dummy_sp};
use diagnostic::span_handler;
use ext::tt::macro_parser::{named_match, matched_seq, matched_nonterminal};
use parse::token::{EOF, INTERPOLATED, IDENT, Token, nt_ident, ident_interner};
use parse::token::{ident_to_str, get_ident_interner};
use parse::token::{EOF, INTERPOLATED, IDENT, Token, nt_ident};
use parse::token::{ident_to_str};
use parse::lexer::TokenAndSpan;
use core::hashmap::HashMap;