remove unused get_ident_interner's

This commit is contained in:
John Clements
2013-06-04 12:21:25 -07:00
parent 8dad2bb281
commit ecdb6e4722
5 changed files with 7 additions and 7 deletions

View File

@@ -18,7 +18,6 @@ use doc;
use core::vec; use core::vec;
use syntax::ast; use syntax::ast;
use syntax;
use syntax::parse::token::{ident_interner, ident_to_str}; use syntax::parse::token::{ident_interner, ident_to_str};
use syntax::parse::token; use syntax::parse::token;

View File

@@ -24,6 +24,7 @@ use pass::Pass;
use core::vec; use core::vec;
use syntax::ast; use syntax::ast;
use syntax::print::pprust; use syntax::print::pprust;
use syntax::parse::token;
use syntax::ast_map; use syntax::ast_map;
pub fn mk_pass() -> Pass { pub fn mk_pass() -> Pass {
@@ -76,7 +77,7 @@ fn get_fn_sig(srv: astsrv::Srv, fn_id: doc::AstId) -> Option<~str> {
node: ast::foreign_item_fn(ref decl, purity, ref tys), _ node: ast::foreign_item_fn(ref decl, purity, ref tys), _
}, _, _, _) => { }, _, _, _) => {
Some(pprust::fun_to_str(decl, purity, ident, None, tys, Some(pprust::fun_to_str(decl, purity, ident, None, tys,
extract::interner())) token::get_ident_interner()))
} }
_ => fail!("get_fn_sig: fn_id not bound to a fn item") _ => fail!("get_fn_sig: fn_id not bound to a fn item")
} }

View File

@@ -19,7 +19,7 @@ use diagnostic::span_handler;
use ext; use ext;
use parse; use parse;
use parse::token; use parse::token;
use parse::token::{ident_to_str, intern, get_ident_interner, str_to_ident}; use parse::token::{ident_to_str, intern, str_to_ident};
use core::hashmap::HashMap; use core::hashmap::HashMap;
use core::vec; use core::vec;

View File

@@ -25,7 +25,7 @@ use ext::base::*;
use fold::*; use fold::*;
use parse; use parse;
use parse::{parse_item_from_source_str}; use parse::{parse_item_from_source_str};
use parse::token::{get_ident_interner, ident_to_str, intern}; use parse::token::{ident_to_str, intern};
use core::vec; use core::vec;
@@ -217,7 +217,6 @@ pub fn expand_item_mac(extsbox: @mut SyntaxEnv,
}; };
let extname = &pth.idents[0]; let extname = &pth.idents[0];
let interner = get_ident_interner();
let extnamestr = ident_to_str(extname); let extnamestr = ident_to_str(extname);
let expanded = match (*extsbox).find(&extname.name) { let expanded = match (*extsbox).find(&extname.name) {
None => cx.span_fatal(pth.span, None => cx.span_fatal(pth.span,
@@ -735,7 +734,7 @@ mod test {
use codemap; use codemap;
use codemap::spanned; use codemap::spanned;
use parse; use parse;
use parse::token::{gensym, get_ident_interner}; use parse::token::{gensym};
use core::io; use core::io;
use core::option::{None, Some}; use core::option::{None, Some};
use util::parser_testing::{string_to_item, string_to_pat, strs_to_idents}; use util::parser_testing::{string_to_item, string_to_pat, strs_to_idents};

View File

@@ -341,9 +341,10 @@ mod test {
use codemap::{span, BytePos, spanned}; use codemap::{span, BytePos, spanned};
use opt_vec; use opt_vec;
use ast; use ast;
use ast::{new_ident};
use abi; use abi;
use parse::parser::Parser; use parse::parser::Parser;
use parse::token::{str_to_ident}; use parse::token::{intern, str_to_ident};
use util::parser_testing::{string_to_tts_and_sess, string_to_parser}; use util::parser_testing::{string_to_tts_and_sess, string_to_parser};
use util::parser_testing::{string_to_expr, string_to_item}; use util::parser_testing::{string_to_expr, string_to_item};
use util::parser_testing::{string_to_stmt}; use util::parser_testing::{string_to_stmt};