diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-12-11 20:39:48 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-12-11 20:39:48 +0000 |
commit | 7415326dcbba6f333f5f7708ac1bf4982f3adb5a (patch) | |
tree | 7c6263af6d22f4b57efb424f778a0161ecd5d997 | |
parent | 43bc2a0973ffe404fabba6f8280cd6bad2c69fcb (diff) |
Remove unused ivar CurTokenIdx.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60896 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Lex/PTHLexer.h | 5 | ||||
-rw-r--r-- | lib/Lex/PTHLexer.cpp | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/include/clang/Lex/PTHLexer.h b/include/clang/Lex/PTHLexer.h index a1d41b54b6..0ae4ac772f 100644 --- a/include/clang/Lex/PTHLexer.h +++ b/include/clang/Lex/PTHLexer.h @@ -25,9 +25,6 @@ class PTHLexer : public PreprocessorLexer { /// 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 @@ private: Token GetToken(); /// AdvanceToken - Advances the PTHLexer to the next token. - void AdvanceToken() { ++CurTokenIdx; NeedsFetching = true; } + void AdvanceToken() { NeedsFetching = true; } bool LexEndOfFile(Token &Result); }; diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp index a92d578518..ebbc96801f 100644 --- a/lib/Lex/PTHLexer.cpp +++ b/lib/Lex/PTHLexer.cpp @@ -28,7 +28,7 @@ using namespace clang; 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(); |