Remove Symbol::len
It is used exactly once and can be replaced with the equally fast .as_str().len()
This commit is contained in:
parent
ce45663e14
commit
9886c233d8
2 changed files with 1 additions and 5 deletions
|
@ -1642,10 +1642,6 @@ impl Symbol {
|
|||
self.0.as_u32()
|
||||
}
|
||||
|
||||
pub fn len(self) -> usize {
|
||||
with_session_globals(|session_globals| session_globals.symbol_interner.get(self).len())
|
||||
}
|
||||
|
||||
pub fn is_empty(self) -> bool {
|
||||
self == kw::Empty
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue