about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2014-07-06 15:07:31 -0700
committerJohn Clements <clements@racket-lang.org>2014-07-08 15:14:46 -0700
commit728b269199484f50779c44bad495cc5ddecd4a15 (patch)
tree2d19893a72e9c831d70614904d855bec2ff1373b /src/libsyntax/parse
parent29b3f2982007daf1c744254314f38f43145e2cd6 (diff)
downloadrust-728b269199484f50779c44bad495cc5ddecd4a15.tar.gz
rust-728b269199484f50779c44bad495cc5ddecd4a15.zip
remove unused fn, make SELF_KEYWORD_NAME public
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/token.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 84834f54a04..84562413ac1 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -365,10 +365,6 @@ pub fn is_plain_ident(t: &Token) -> bool {
     match *t { IDENT(_, false) => true, _ => false }
 }
 
-pub fn is_bar(t: &Token) -> bool {
-    match *t { BINOP(OR) | OROR => true, _ => false }
-}
-
 // Get the first "argument"
 macro_rules! first {
     ( $first:expr, $( $remainder:expr, )* ) => ( $first )
@@ -447,7 +443,7 @@ macro_rules! declare_special_idents_and_keywords {(
 }}
 
 // If the special idents get renumbered, remember to modify these two as appropriate
-static SELF_KEYWORD_NAME: Name = 1;
+pub static SELF_KEYWORD_NAME: Name = 1;
 static STATIC_KEYWORD_NAME: Name = 2;
 
 // NB: leaving holes in the ident table is bad! a different ident will get