From fb8ab18f503b0795e83ec6a67aba124b47360074 Mon Sep 17 00:00:00 2001 From: Agustin Chiappe Berrini Date: Thu, 7 Dec 2017 03:56:31 -0500 Subject: [PATCH] remove unnecessary function --- src/libsyntax_pos/symbol.rs | 6 +----- 1 file changed, 1 insertion(+), 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 {