Skip to content

Commit e53bb1a

Browse files
committed
Reduce Symbol's interface slightly.
1 parent cb7eacb commit e53bb1a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/libsyntax_pos/symbol.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -380,10 +380,6 @@ impl Symbol {
380380
with_interner(|interner| interner.intern(string))
381381
}
382382

383-
pub fn interned(self) -> Self {
384-
with_interner(|interner| interner.interned(self))
385-
}
386-
387383
/// Gensyms a new `usize`, using the current interner.
388384
pub fn gensym(string: &str) -> Self {
389385
with_interner(|interner| interner.gensym(string))
@@ -502,7 +498,7 @@ impl Interner {
502498
name
503499
}
504500

505-
pub fn interned(&self, symbol: Symbol) -> Symbol {
501+
fn interned(&self, symbol: Symbol) -> Symbol {
506502
if (symbol.0.as_usize()) < self.strings.len() {
507503
symbol
508504
} else {

0 commit comments

Comments
 (0)