diff options
author | Lars Knoll <lars.knoll@qt.io> | 2017-08-08 21:48:32 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-08-10 08:19:29 +0000 |
commit | 7c0dbaa3db649fb348af533820ac0550bc144d96 (patch) | |
tree | 7f9508f303f03a4d275db961b2918277ce0a19e1 /src/qml/jsruntime/qv4runtime.cpp | |
parent | 55f17d0faad79dbb9adf793f7ce6e75ff5b70033 (diff) |
Remove some unused runtime methods
Change-Id: Ief0ecf2783fa772a7738d0a6d001998c3967b727
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4runtime.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4runtime.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/qml/jsruntime/qv4runtime.cpp b/src/qml/jsruntime/qv4runtime.cpp index cbe8de4d28..a693128755 100644 --- a/src/qml/jsruntime/qv4runtime.cpp +++ b/src/qml/jsruntime/qv4runtime.cpp @@ -1328,40 +1328,6 @@ QV4::ReturnedValue Runtime::method_createUnmappedArgumentsObject(ExecutionEngine return engine->memoryManager->allocObject<ArgumentsObject>(ic, engine->objectPrototype(), c, true)->asReturnedValue(); } -#endif // V4_BOOTSTRAP - -ReturnedValue Runtime::method_toDouble(const Value &value) -{ - TRACE1(value); - return Encode(value.toNumber()); -} - -int Runtime::method_toInt(const Value &value) -{ - TRACE1(value); - return value.toInt32(); -} - -int Runtime::method_doubleToInt(const double &d) -{ - TRACE0(); - return Primitive::toInt32(d); -} - -unsigned Runtime::method_toUInt(const Value &value) -{ - TRACE1(value); - return value.toUInt32(); -} - -unsigned Runtime::method_doubleToUInt(const double &d) -{ - TRACE0(); - return Primitive::toUInt32(d); -} - -#ifndef V4_BOOTSTRAP - ReturnedValue Runtime::method_getQmlContext(NoThrowEngine *engine) { return engine->qmlContext()->asReturnedValue(); @@ -1667,11 +1633,6 @@ Bool Runtime::method_compareStrictNotEqual(const Value &left, const Value &right return ! RuntimeHelpers::strictEqual(left, right); } -Bool Runtime::method_toBoolean(const Value &value) -{ - return value.toBoolean(); -} - } // namespace QV4 QT_END_NAMESPACE |