Skip to content

Commit 3e5e8d3

Browse files
committed
Reduce Symbol's interface slightly.
1 parent b749511 commit 3e5e8d3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Diff for: src/libsyntax_pos/symbol.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,6 @@ impl Symbol {
376376
with_interner(|interner| interner.intern(string))
377377
}
378378

379-
pub fn interned(self) -> Self {
380-
with_interner(|interner| interner.interned(self))
381-
}
382-
383379
/// Gensyms a new `usize`, using the current interner.
384380
pub fn gensym(string: &str) -> Self {
385381
with_interner(|interner| interner.gensym(string))
@@ -497,7 +493,7 @@ impl Interner {
497493
name
498494
}
499495

500-
pub fn interned(&self, symbol: Symbol) -> Symbol {
496+
fn interned(&self, symbol: Symbol) -> Symbol {
501497
if (symbol.0.as_usize()) < self.strings.len() {
502498
symbol
503499
} else {

0 commit comments

Comments
 (0)