remove unnecessary function
This commit is contained in:
parent
ce1fed7f52
commit
fb8ab18f50
1 changed files with 1 additions and 5 deletions
|
@ -36,7 +36,7 @@ impl Ident {
|
|||
}
|
||||
|
||||
pub fn without_first_quote(&self) -> Ident {
|
||||
Ident { name: self.name.without_first_quote(), ctxt: self.ctxt }
|
||||
Ident { name: Symbol::from(self.name.as_str().trim_left_matches('\'')), ctxt: self.ctxt }
|
||||
}
|
||||
|
||||
pub fn modern(self) -> Ident {
|
||||
|
@ -117,10 +117,6 @@ impl Symbol {
|
|||
pub fn as_u32(self) -> u32 {
|
||||
self.0
|
||||
}
|
||||
|
||||
pub fn without_first_quote(&self) -> Symbol {
|
||||
Symbol::from(self.as_str().trim_left_matches('\''))
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> From<&'a str> for Symbol {
|
||||
|
|
Loading…
Reference in a new issue