From 19af71d4bf7801b29ffe415f6c7e3ae738995533 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 18 Oct 2012 12:04:22 +0200 Subject: [PATCH] Remove unused method Change-Id: I780afc37dd651922ca66770a69e9ae2050d198c4 Reviewed-by: Simon Hausmann --- qmljs_runtime.cpp | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/qmljs_runtime.cpp b/qmljs_runtime.cpp index 9e9d364..2522bd5 100644 --- a/qmljs_runtime.cpp +++ b/qmljs_runtime.cpp @@ -1109,32 +1109,6 @@ Value __qmljs_get_thisObject(Context *ctx) return ctx->engine->globalObject; } -Value __qmljs_compare(Value x, Value y, Context *ctx, bool leftFirst) -{ - Value px, py; - - if (leftFirst) { - px = __qmljs_to_primitive(x, ctx, NUMBER_HINT); - py = __qmljs_to_primitive(y, ctx, NUMBER_HINT); - } else { - px = __qmljs_to_primitive(x, ctx, NUMBER_HINT); - py = __qmljs_to_primitive(y, ctx, NUMBER_HINT); - } - - if (px.isString() && py.isString()) { - bool r = __qmljs_string_compare(ctx, px.stringValue(), py.stringValue()); - return Value::fromBoolean(r); - } else { - double nx = __qmljs_to_number(px, ctx); - double ny = __qmljs_to_number(py, ctx); - if (std::isnan(nx) || std::isnan(ny)) { - return Value::undefinedValue(); - } else { - return Value::fromBoolean(nx < ny); - } - } -} - uint __qmljs_equal(Value x, Value y, Context *ctx) { if (x.type() == y.type()) { -- 2.7.4