зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1551916
- Remove |TokenStreamAnyChars::undoInternalUpdateLineInfoForEOL| as unused. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D31300 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
ce94f581e0
Коммит
39cf0106b2
|
@ -639,14 +639,6 @@ TokenStreamAnyChars::internalUpdateLineInfoForEOL(uint32_t lineStartOffset) {
|
|||
return srcCoords.add(lineno, linebase);
|
||||
}
|
||||
|
||||
void TokenStreamAnyChars::undoInternalUpdateLineInfoForEOL() {
|
||||
MOZ_ASSERT(prevLinebase !=
|
||||
size_t(-1)); // we should never get more than one EOL
|
||||
linebase = prevLinebase;
|
||||
prevLinebase = size_t(-1);
|
||||
lineno--;
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
template <>
|
||||
|
|
|
@ -636,8 +636,6 @@ class TokenStreamAnyChars : public TokenStreamShared {
|
|||
MOZ_MUST_USE MOZ_ALWAYS_INLINE bool internalUpdateLineInfoForEOL(
|
||||
uint32_t lineStartOffset);
|
||||
|
||||
void undoInternalUpdateLineInfoForEOL();
|
||||
|
||||
public:
|
||||
const Token& nextToken() const {
|
||||
MOZ_ASSERT(hasLookahead());
|
||||
|
|
Загрузка…
Ссылка в новой задаче