From ddf3c6de74e2ec991fa10ed627343bb1e865ed9c Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Thu, 19 Dec 2013 15:44:33 -0800 Subject: [PATCH] librustc: Remove unused `TypeNames::find_name` function --- src/librustc/lib/llvm.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/librustc/lib/llvm.rs b/src/librustc/lib/llvm.rs index 754b5c8fb080..711f6133b5de 100644 --- a/src/librustc/lib/llvm.rs +++ b/src/librustc/lib/llvm.rs @@ -1821,13 +1821,6 @@ impl TypeNames { assert!(self.named_types.insert(s.to_owned(), t.to_ref())); } - pub fn find_name<'r>(&'r self, ty: &Type) -> Option<&'r str> { - match self.type_names.find(&ty.to_ref()) { - Some(a) => Some(a.slice(0, a.len())), - None => None - } - } - pub fn find_type(&self, s: &str) -> Option { self.named_types.find_equiv(&s).map(|x| Type::from_ref(*x)) }