forked from qt-creator/qt-creator
C++: Remove unused functions in Lexer
Change-Id: I78b70eead1c64b9925272c50cc6109c5b415574d Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
9
src/libs/3rdparty/cplusplus/Lexer.cpp
vendored
9
src/libs/3rdparty/cplusplus/Lexer.cpp
vendored
@@ -110,15 +110,6 @@ unsigned Lexer::tokenOffset() const
|
||||
unsigned Lexer::tokenLength() const
|
||||
{ return _currentChar - _tokenStart; }
|
||||
|
||||
const char *Lexer::tokenBegin() const
|
||||
{ return _tokenStart; }
|
||||
|
||||
const char *Lexer::tokenEnd() const
|
||||
{ return _currentChar; }
|
||||
|
||||
unsigned Lexer::currentLine() const
|
||||
{ return _currentLine; }
|
||||
|
||||
void Lexer::scan(Token *tok)
|
||||
{
|
||||
tok->reset();
|
||||
|
||||
5
src/libs/3rdparty/cplusplus/Lexer.h
vendored
5
src/libs/3rdparty/cplusplus/Lexer.h
vendored
@@ -46,9 +46,6 @@ public:
|
||||
|
||||
unsigned tokenOffset() const;
|
||||
unsigned tokenLength() const;
|
||||
const char *tokenBegin() const;
|
||||
const char *tokenEnd() const;
|
||||
unsigned currentLine() const;
|
||||
|
||||
bool scanCommentTokens() const;
|
||||
void setScanCommentTokens(bool onoff);
|
||||
@@ -121,10 +118,8 @@ private:
|
||||
};
|
||||
unsigned _currentLine;
|
||||
LanguageFeatures _languageFeatures;
|
||||
|
||||
};
|
||||
|
||||
} // namespace CPlusPlus
|
||||
|
||||
|
||||
#endif // CPLUSPLUS_LEXER_H
|
||||
|
||||
Reference in New Issue
Block a user