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

@@ -24,12 +24,11 @@ use core::option;
use core::str;
use core::to_bytes;
pub fn path_name_i(idents: &[ident], intr: @token::ident_interner) -> ~str {
pub fn path_name_i(idents: &[ident]) -> ~str {
// FIXME: Bad copies (#2543 -- same for everything else that says "bad")
str::connect(idents.map(|i| copy *token::interner_get(i.name)), "::")
}
pub fn path_to_ident(p: @Path) -> ident { copy *p.idents.last() }
pub fn local_def(id: node_id) -> def_id {