Skip to content

Commit

Permalink
refactor(semantic)!: remove SymbolTable::iter_rev (#5620)
Browse files Browse the repository at this point in the history
#5615 removed the only usage of this method, so it's now dead code.
  • Loading branch information
overlookmotel committed Sep 9, 2024
1 parent 37e922c commit 96a1552
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crates/oxc_semantic/src/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ impl SymbolTable {
self.spans.iter_enumerated().map(|(symbol_id, _)| symbol_id)
}

pub fn iter_rev(&self) -> impl Iterator<Item = SymbolId> + '_ {
self.spans.iter_enumerated().rev().map(|(symbol_id, _)| symbol_id)
}

pub fn get_symbol_id_from_span(&self, span: Span) -> Option<SymbolId> {
self.spans
.iter_enumerated()
Expand Down

0 comments on commit 96a1552

Please sign in to comment.