about summary refs log tree commit diff
path: root/src/libsyntax_pos
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-09-04 09:13:56 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2019-09-04 14:23:45 +1000
commit69ae8d9dfd9927d3db9d1d2676ca429c76007405 (patch)
tree11099865953367090ca04a488020bdb05b4d3deb /src/libsyntax_pos
parentbf536dde3b603a0eb4ab9d351010c29799e28676 (diff)
downloadrust-69ae8d9dfd9927d3db9d1d2676ca429c76007405.tar.gz
rust-69ae8d9dfd9927d3db9d1d2676ca429c76007405.zip
Remove `LocalInternedString::as_interned_str()`.
It's unused.
Diffstat (limited to 'src/libsyntax_pos')
-rw-r--r--src/libsyntax_pos/symbol.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/libsyntax_pos/symbol.rs b/src/libsyntax_pos/symbol.rs
index f44716e013e..42db2d21991 100644
--- a/src/libsyntax_pos/symbol.rs
+++ b/src/libsyntax_pos/symbol.rs
@@ -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