Remove LocalInternedString::as_interned_str().

It's unused.
This commit is contained in:
Nicholas Nethercote 2019-09-04 09:13:56 +10:00
parent bf536dde3b
commit 69ae8d9dfd

View file

@ -1169,12 +1169,6 @@ impl LocalInternedString {
}
}
pub fn as_interned_str(self) -> InternedString {
InternedString {
symbol: Symbol::intern(self.string)
}
}
#[inline]
pub fn get(&self) -> &str {
// This returns a valid string since we ensure that `self` outlives the interner