From 59645c12098719147ec23b334f29fc1516212ce5 Mon Sep 17 00:00:00 2001 From: Corey Richardson Date: Tue, 1 Apr 2014 10:16:58 -0400 Subject: [PATCH] back: link: remove dead code --- src/librustc/back/link.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/librustc/back/link.rs b/src/librustc/back/link.rs index f198a41af65..e9292f54a4b 100644 --- a/src/librustc/back/link.rs +++ b/src/librustc/back/link.rs @@ -687,16 +687,6 @@ pub fn mangle_exported_name(ccx: &CrateContext, path: PathElems, exported_name(path, hash, ccx.link_meta.crateid.version_or_default()) } -pub fn mangle_internal_name_by_type_only(ccx: &CrateContext, - t: ty::t, - name: &str) -> ~str { - let s = ppaux::ty_to_short_str(ccx.tcx(), t); - let path = [PathName(token::intern(name)), - PathName(token::intern(s))]; - let hash = get_symbol_hash(ccx, t); - mangle(ast_map::Values(path.iter()), Some(hash.as_slice()), None) -} - pub fn mangle_internal_name_by_type_and_seq(ccx: &CrateContext, t: ty::t, name: &str) -> ~str {