diff options
| author | Agustin Chiappe Berrini <jnieve@gmail.com> | 2017-12-07 03:56:31 -0500 |
|---|---|---|
| committer | Agustin Chiappe Berrini <jnieve@gmail.com> | 2017-12-07 03:56:31 -0500 |
| commit | fb8ab18f503b0795e83ec6a67aba124b47360074 (patch) | |
| tree | 7d2818868c262796d0f2c95f3c397837b50ea3c9 /src/libsyntax_pos | |
| parent | ce1fed7f52584d4a23ddbd8d464b046d840c654e (diff) | |
| download | rust-fb8ab18f503b0795e83ec6a67aba124b47360074.tar.gz rust-fb8ab18f503b0795e83ec6a67aba124b47360074.zip | |
remove unnecessary function
Diffstat (limited to 'src/libsyntax_pos')
| -rw-r--r-- | src/libsyntax_pos/symbol.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libsyntax_pos/symbol.rs b/src/libsyntax_pos/symbol.rs index 0e90e0922b9..6a67e4fcd5d 100644 --- a/src/libsyntax_pos/symbol.rs +++ b/src/libsyntax_pos/symbol.rs @@ -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 { |
