forked from qt-creator/qt-creator
QmlJS: Remove unused functions
Amends eb5cdb4293.
Change-Id: I8d8627b9471547df0334f6035d4a0241a21c1f1f
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
@@ -1364,36 +1364,6 @@ static bool shouldAvoidNonStrictEqualityCheck(const Value *lhs, const Value *rhs
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool isIntegerValue(const Value *value)
|
|
||||||
{
|
|
||||||
if (value->asNumberValue() || value->asIntValue())
|
|
||||||
return true;
|
|
||||||
if (auto obj = value->asObjectValue())
|
|
||||||
return obj->className() == "Number" || obj->className() == "int";
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool isStringValue(const Value *value)
|
|
||||||
{
|
|
||||||
if (value->asStringValue())
|
|
||||||
return true;
|
|
||||||
if (auto obj = value->asObjectValue())
|
|
||||||
return obj->className() == "QString" || obj->className() == "string" || obj->className() == "String";
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool isBooleanValue(const Value *value)
|
|
||||||
{
|
|
||||||
if (value->asBooleanValue())
|
|
||||||
return true;
|
|
||||||
if (auto obj = value->asObjectValue())
|
|
||||||
return obj->className() == "boolean" || obj->className() == "Boolean";
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Check::visit(BinaryExpression *ast)
|
bool Check::visit(BinaryExpression *ast)
|
||||||
{
|
{
|
||||||
const QString source = _doc->source();
|
const QString source = _doc->source();
|
||||||
|
|||||||
Reference in New Issue
Block a user