Skip to content

Commit

Permalink
Reduce Symbol's interface slightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
nnethercote committed May 10, 2019
1 parent cb7eacb commit e53bb1a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/libsyntax_pos/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,6 @@ impl Symbol {
with_interner(|interner| interner.intern(string))
}

pub fn interned(self) -> Self {
with_interner(|interner| interner.interned(self))
}

/// Gensyms a new `usize`, using the current interner.
pub fn gensym(string: &str) -> Self {
with_interner(|interner| interner.gensym(string))
Expand Down Expand Up @@ -502,7 +498,7 @@ impl Interner {
name
}

pub fn interned(&self, symbol: Symbol) -> Symbol {
fn interned(&self, symbol: Symbol) -> Symbol {
if (symbol.0.as_usize()) < self.strings.len() {
symbol
} else {
Expand Down

0 comments on commit e53bb1a

Please sign in to comment.