libsyntax: Remove the interner_get function and all uses

This commit is contained in:
Patrick Walton
2014-01-31 16:10:06 -08:00
committed by Huon Wilson
parent a695b62118
commit e5dc347ccf
5 changed files with 13 additions and 34 deletions

View File

@@ -19,7 +19,7 @@ use codemap::{CodeMap, BytePos};
use codemap;
use diagnostic;
use parse::classify::expr_is_simple_block;
use parse::token::{IdentInterner, interner_get};
use parse::token::IdentInterner;
use parse::{comments, token};
use parse;
use print::pp::{break_offset, word, space, zerobreak, hardbreak};
@@ -1544,7 +1544,8 @@ pub fn print_ident(s: &mut State, ident: ast::Ident) {
}
pub fn print_name(s: &mut State, name: ast::Name) {
word(&mut s.s, interner_get(name));
let string = token::get_ident(name);
word(&mut s.s, string.get());
}
pub fn print_for_decl(s: &mut State, loc: &ast::Local, coll: &ast::Expr) {