diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2012-01-16 13:29:38 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-01 08:37:49 +0100 |
commit | 1edcf64d282b9368d4609b91453cbc6e3f6a84c5 (patch) | |
tree | 73a14b29c0e774ab310c4a6416dd7dcd31d9d4aa /src/declarative/qml/v8/qjsengine.cpp | |
parent | 6a8439070ed0582311053d130500facfd3e9d89d (diff) |
Remove QJSEngine::toObject() and QJSValue::toObject()
Rationale: There is no compelling usecase for these functions.
They are a remnant from QtScript.
Task-number: QTBUG-23604
Change-Id: I6d8b4299956dd8f6284934739c4f1a65e4deb64c
Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Diffstat (limited to 'src/declarative/qml/v8/qjsengine.cpp')
-rw-r--r-- | src/declarative/qml/v8/qjsengine.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/declarative/qml/v8/qjsengine.cpp b/src/declarative/qml/v8/qjsengine.cpp index 0e8d0c158d..a4a7f588a1 100644 --- a/src/declarative/qml/v8/qjsengine.cpp +++ b/src/declarative/qml/v8/qjsengine.cpp @@ -450,33 +450,6 @@ QJSValue QJSEngine::globalObject() const /*! \obsolete - Converts the given \a value to an object, if such a conversion is - possible; otherwise returns an invalid QJSValue. The conversion - is performed according to the following table: - - \table - \header \o Input Type \o Result - \row \o Undefined \o An invalid QJSValue. - \row \o Null \o An invalid QJSValue. - \row \o Boolean \o A new Boolean object whose internal value is set to the value of the boolean. - \row \o Number \o A new Number object whose internal value is set to the value of the number. - \row \o String \o A new String object whose internal value is set to the value of the string. - \row \o Object \o The result is the object itself (no conversion). - \endtable - - \sa newObject() -*/ -QJSValue QJSEngine::toObject(const QJSValue& value) -{ - Q_D(QJSEngine); - QScriptIsolate api(d, QScriptIsolate::NotNullEngine); - v8::HandleScope handleScope; - return QJSValuePrivate::get(QJSValuePrivate::get(value)->toObject(d)); -} - -/*! - \obsolete - Creates a JavaScript object of class Date from the given \a value. \sa QJSValue::toDateTime() |