diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-08-25 15:20:13 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-08-26 14:56:56 +0200 |
commit | bb1e23d8f02451f92a9fa0f2570de4dce065170c (patch) | |
tree | 12dc85d09f321bd4681b2bf562c5a7ea5f33bbb0 /src/qml/jsapi/qjsvalue.cpp | |
parent | 8ded1241cc9bd1fee463cd40769840bc3dcc142c (diff) |
Remove deprecated function QJSValue::engine
[ChangeLog][QJSValue] The deprecated function QJSValue::engine() has
been removed.
Change-Id: I2be35379e0a9e51f5371a2c98b955282955b7147
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/qml/jsapi/qjsvalue.cpp')
-rw-r--r-- | src/qml/jsapi/qjsvalue.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/qml/jsapi/qjsvalue.cpp b/src/qml/jsapi/qjsvalue.cpp index a3cf034096..663f6ced82 100644 --- a/src/qml/jsapi/qjsvalue.cpp +++ b/src/qml/jsapi/qjsvalue.cpp @@ -742,25 +742,6 @@ QJSValue QJSValue::callAsConstructor(const QJSValueList &args) const return QJSValuePrivate::fromReturnedValue(result->asReturnedValue()); } -#ifdef QT_DEPRECATED - -/*! - \obsolete - - Returns the QJSEngine that created this QJSValue, - or 0 if this QJSValue is invalid or the value is not - associated with a particular engine. -*/ -QJSEngine* QJSValue::engine() const -{ - QV4::ExecutionEngine *engine = QJSValuePrivate::engine(this); - if (engine) - return engine->jsEngine(); - return nullptr; -} - -#endif // QT_DEPRECATED - /*! If this QJSValue is an object, returns the internal prototype (\c{__proto__} property) of this object; otherwise returns an |