]> git.lizzy.rs Git - rust.git/commitdiff
remove unused fn, make SELF_KEYWORD_NAME public
authorJohn Clements <clements@racket-lang.org>
Sun, 6 Jul 2014 22:07:31 +0000 (15:07 -0700)
committerJohn Clements <clements@racket-lang.org>
Tue, 8 Jul 2014 22:14:46 +0000 (15:14 -0700)
src/libsyntax/parse/token.rs

index 84834f54a04eb10680a6be9082dfed5943b71289..84562413ac1ae67cbd5a1bb4b309291761a57d9c 100644 (file)
@@ -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 @@ fn mk_fresh_ident_interner() -> IdentInterner {
 }}
 
 // 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