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

@@ -14,8 +14,8 @@ use codemap::{Span, Spanned, DUMMY_SP};
use abi::AbiSet;
use ast_util;
use opt_vec::OptVec;
use parse::token::{InternedString, interner_get, special_idents};
use parse::token::{str_to_ident};
use parse::token::{InternedString, special_idents, str_to_ident};
use parse::token;
use std::cell::RefCell;
use std::hashmap::HashMap;
@@ -126,7 +126,8 @@ pub type Mrk = u32;
impl<S:Encoder> Encodable<S> for Ident {
fn encode(&self, s: &mut S) {
s.emit_str(interner_get(self.name));
let string = token::get_ident(self.name);
s.emit_str(string.get());
}
}