Skip to content

Commit 69ae8d9

Browse files
committed
Remove LocalInternedString::as_interned_str().
It's unused.
1 parent bf536dd commit 69ae8d9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/libsyntax_pos/symbol.rs

-6
Original file line numberDiff line numberDiff line change
@@ -1169,12 +1169,6 @@ impl LocalInternedString {
11691169
}
11701170
}
11711171

1172-
pub fn as_interned_str(self) -> InternedString {
1173-
InternedString {
1174-
symbol: Symbol::intern(self.string)
1175-
}
1176-
}
1177-
11781172
#[inline]
11791173
pub fn get(&self) -> &str {
11801174
// This returns a valid string since we ensure that `self` outlives the interner

0 commit comments

Comments
 (0)