about summary refs log tree commit diff
path: root/src/libsyntax/tokenstream.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-06-08 22:38:23 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2019-06-08 22:38:23 +0300
commit25b05147b3ec0a1ed9df9614910a10171b8cf211 (patch)
tree40e348a9fd8394e15c873a56c24957131ba3a977 /src/libsyntax/tokenstream.rs
parent0ca3c2f881fc4bc51bfa92f1adcd1b845b812534 (diff)
downloadrust-25b05147b3ec0a1ed9df9614910a10171b8cf211.tar.gz
rust-25b05147b3ec0a1ed9df9614910a10171b8cf211.zip
syntax: Remove `Deref` impl from `Token`
Diffstat (limited to 'src/libsyntax/tokenstream.rs')
-rw-r--r--src/libsyntax/tokenstream.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libsyntax/tokenstream.rs b/src/libsyntax/tokenstream.rs
index d46d2f549c0..2daec970279 100644
--- a/src/libsyntax/tokenstream.rs
+++ b/src/libsyntax/tokenstream.rs
@@ -126,14 +126,6 @@ impl TokenTree {
         }
     }
 
-    /// Indicates if the stream is a token that is equal to the provided token.
-    pub fn eq_token(&self, t: TokenKind) -> bool {
-        match self {
-            TokenTree::Token(token) => *token == t,
-            _ => false,
-        }
-    }
-
     pub fn joint(self) -> TokenStream {
         TokenStream::new(vec![(self, Joint)])
     }