Skip to content

Commit 728b269

Browse files
committed
remove unused fn, make SELF_KEYWORD_NAME public
1 parent 29b3f29 commit 728b269

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/libsyntax/parse/token.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,6 @@ pub fn is_plain_ident(t: &Token) -> bool {
365365
match *t { IDENT(_, false) => true, _ => false }
366366
}
367367

368-
pub fn is_bar(t: &Token) -> bool {
369-
match *t { BINOP(OR) | OROR => true, _ => false }
370-
}
371-
372368
// Get the first "argument"
373369
macro_rules! first {
374370
( $first:expr, $( $remainder:expr, )* ) => ( $first )
@@ -447,7 +443,7 @@ macro_rules! declare_special_idents_and_keywords {(
447443
}}
448444

449445
// If the special idents get renumbered, remember to modify these two as appropriate
450-
static SELF_KEYWORD_NAME: Name = 1;
446+
pub static SELF_KEYWORD_NAME: Name = 1;
451447
static STATIC_KEYWORD_NAME: Name = 2;
452448

453449
// NB: leaving holes in the ident table is bad! a different ident will get

0 commit comments

Comments
 (0)