From aef5a94c22e40a5127325c92a66b9897c8687f81 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 28 Sep 2023 07:12:12 +0200 Subject: [PATCH] QmlJS: Remove unused functions Amends eb5cdb4293be8c4c878425ea9d45f5c105205bb2. Change-Id: I8d8627b9471547df0334f6035d4a0241a21c1f1f Reviewed-by: Fabian Kosmale --- src/libs/qmljs/qmljscheck.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/src/libs/qmljs/qmljscheck.cpp b/src/libs/qmljs/qmljscheck.cpp index 1d81080c7e7..e9faed95abb 100644 --- a/src/libs/qmljs/qmljscheck.cpp +++ b/src/libs/qmljs/qmljscheck.cpp @@ -1364,36 +1364,6 @@ static bool shouldAvoidNonStrictEqualityCheck(const Value *lhs, const Value *rhs 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) { const QString source = _doc->source();