diff options
| author | John Clements <clements@racket-lang.org> | 2013-06-04 11:09:18 -0700 |
|---|---|---|
| committer | John Clements <clements@racket-lang.org> | 2013-06-05 12:01:39 -0700 |
| commit | 8dad2bb2814fec7f8593f54b5d95e892a09596ab (patch) | |
| tree | 5bf6f3efca9a795f089f111d1382fa9dfb022f81 /src/libsyntax/ast_util.rs | |
| parent | 367eddf5b1777928ca0119932a877aaec757293a (diff) | |
| download | rust-8dad2bb2814fec7f8593f54b5d95e892a09596ab.tar.gz rust-8dad2bb2814fec7f8593f54b5d95e892a09596ab.zip | |
removed unused imports (and one unused argument)
Diffstat (limited to 'src/libsyntax/ast_util.rs')
| -rw-r--r-- | src/libsyntax/ast_util.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/ast_util.rs b/src/libsyntax/ast_util.rs index cf90da4ffae..588968365b1 100644 --- a/src/libsyntax/ast_util.rs +++ b/src/libsyntax/ast_util.rs @@ -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 { |
