forked from qt-creator/qt-creator
Remove unused private functions
As found by Cppcheck. Change-Id: I697ea69992425ff41e35990ad00be312b35ba70a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -293,9 +293,6 @@ public:
|
||||
{ return _beginLine; }
|
||||
|
||||
private:
|
||||
void setArguments(const QVector<Block> &arguments)
|
||||
{ _arguments = arguments; }
|
||||
|
||||
void addArgument(const Block &block)
|
||||
{ _arguments.append(block); }
|
||||
|
||||
|
||||
@@ -225,18 +225,6 @@ int ExpressionUnderCursor::startOfExpression_helper(BackwardsScanner &tk, int in
|
||||
return index;
|
||||
}
|
||||
|
||||
bool ExpressionUnderCursor::isAccessToken(const Token &tk)
|
||||
{
|
||||
switch (tk.kind()) {
|
||||
case T_COLON_COLON:
|
||||
case T_DOT: case T_ARROW:
|
||||
case T_DOT_STAR: case T_ARROW_STAR:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
} // switch
|
||||
}
|
||||
|
||||
QString ExpressionUnderCursor::operator()(const QTextCursor &cursor)
|
||||
{
|
||||
BackwardsScanner scanner(cursor, _languageFeatures);
|
||||
|
||||
@@ -50,7 +50,6 @@ public:
|
||||
private:
|
||||
int startOfExpression(BackwardsScanner &tk, int index);
|
||||
int startOfExpression_helper(BackwardsScanner &tk, int index);
|
||||
bool isAccessToken(const Token &tk);
|
||||
|
||||
private:
|
||||
bool _jumpedComma;
|
||||
|
||||
Reference in New Issue
Block a user