removed unused imports (and one unused argument)
This commit is contained in:
parent
367eddf5b1
commit
8dad2bb281
15 changed files with 14 additions and 26 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue