Skip to content

Commit fb8ab18

Browse files
author
Agustin Chiappe Berrini
committed
remove unnecessary function
1 parent ce1fed7 commit fb8ab18

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/libsyntax_pos/symbol.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl Ident {
3636
}
3737

3838
pub fn without_first_quote(&self) -> Ident {
39-
Ident { name: self.name.without_first_quote(), ctxt: self.ctxt }
39+
Ident { name: Symbol::from(self.name.as_str().trim_left_matches('\'')), ctxt: self.ctxt }
4040
}
4141

4242
pub fn modern(self) -> Ident {
@@ -117,10 +117,6 @@ impl Symbol {
117117
pub fn as_u32(self) -> u32 {
118118
self.0
119119
}
120-
121-
pub fn without_first_quote(&self) -> Symbol {
122-
Symbol::from(self.as_str().trim_left_matches('\''))
123-
}
124120
}
125121

126122
impl<'a> From<&'a str> for Symbol {

0 commit comments

Comments
 (0)