Remove Symbol::len

It is used exactly once and can be replaced with the equally fast
.as_str().len()
This commit is contained in:
bjorn3 2021-09-18 18:01:36 +02:00
parent ce45663e14
commit 9886c233d8
2 changed files with 1 additions and 5 deletions

View file

@ -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
}