mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 898912 (part 7) - Remove dead isCurrentToken* functions. r=till.
--HG-- extra : rebase_source : ab272db001bc9f33c1063fdee16c02256e348860
This commit is contained in:
parent
22ac8603c9
commit
566a43deb2
@ -441,10 +441,6 @@ class MOZ_STACK_CLASS TokenStream
|
||||
bool isCurrentTokenType(TokenKind type) const {
|
||||
return currentToken().type == type;
|
||||
}
|
||||
bool isCurrentTokenType(TokenKind type1, TokenKind type2) const {
|
||||
TokenKind type = currentToken().type;
|
||||
return type == type1 || type == type2;
|
||||
}
|
||||
const CharBuffer &getTokenbuf() const { return tokenbuf; }
|
||||
const char *getFilename() const { return filename; }
|
||||
unsigned getLineno() const { return lineno; }
|
||||
@ -454,18 +450,6 @@ class MOZ_STACK_CLASS TokenStream
|
||||
JSVersion versionWithFlags() const { return options().version; }
|
||||
bool hadError() const { return !!(flags & TSF_HAD_ERROR); }
|
||||
|
||||
bool isCurrentTokenEquality() const {
|
||||
return TokenKindIsEquality(currentToken().type);
|
||||
}
|
||||
|
||||
bool isCurrentTokenRelational() const {
|
||||
return TokenKindIsRelational(currentToken().type);
|
||||
}
|
||||
|
||||
bool isCurrentTokenShift() const {
|
||||
return TokenKindIsShift(currentToken().type);
|
||||
}
|
||||
|
||||
bool isCurrentTokenAssignment() const {
|
||||
return TokenKindIsAssignment(currentToken().type);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user