[cfe-commits] r60896 - in /cfe/trunk: include/clang/Lex/PTHLexer.h lib/Lex/PTHLexer.cpp
Ted Kremenek
kremenek at apple.com
Thu Dec 11 12:39:48 PST 2008
Author: kremenek
Date: Thu Dec 11 14:39:48 2008
New Revision: 60896
URL: http://llvm.org/viewvc/llvm-project?rev=60896&view=rev
Log:
Remove unused ivar CurTokenIdx.
Modified:
cfe/trunk/include/clang/Lex/PTHLexer.h
cfe/trunk/lib/Lex/PTHLexer.cpp
Modified: cfe/trunk/include/clang/Lex/PTHLexer.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/PTHLexer.h?rev=60896&r1=60895&r2=60896&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/PTHLexer.h (original)
+++ cfe/trunk/include/clang/Lex/PTHLexer.h Thu Dec 11 14:39:48 2008
@@ -25,9 +25,6 @@
/// TokBuf - Buffer from PTH file containing raw token data.
const char* TokBuf;
- /// CurTokenIdx - This is the index of the next token that Lex will return.
- unsigned CurTokenIdx;
-
PTHLexer(const PTHLexer&); // DO NOT IMPLEMENT
void operator=(const PTHLexer&); // DO NOT IMPLEMENT
@@ -86,7 +83,7 @@
Token GetToken();
/// AdvanceToken - Advances the PTHLexer to the next token.
- void AdvanceToken() { ++CurTokenIdx; NeedsFetching = true; }
+ void AdvanceToken() { NeedsFetching = true; }
bool LexEndOfFile(Token &Result);
};
Modified: cfe/trunk/lib/Lex/PTHLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PTHLexer.cpp?rev=60896&r1=60895&r2=60896&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PTHLexer.cpp (original)
+++ cfe/trunk/lib/Lex/PTHLexer.cpp Thu Dec 11 14:39:48 2008
@@ -28,7 +28,7 @@
PTHLexer::PTHLexer(Preprocessor& pp, SourceLocation fileloc, const char* D,
PTHManager& PM)
- : PreprocessorLexer(&pp, fileloc), TokBuf(D), CurTokenIdx(0), PTHMgr(PM),
+ : PreprocessorLexer(&pp, fileloc), TokBuf(D), PTHMgr(PM),
NeedsFetching(true) {
// Make sure the EofToken is completely clean.
EofToken.startToken();
More information about the cfe-commits
mailing list