diff options
Diffstat (limited to 'src/qml/jsapi')
-rw-r--r-- | src/qml/jsapi/qjsvalue.cpp | 19 | ||||
-rw-r--r-- | src/qml/jsapi/qjsvalue.h | 3 |
2 files changed, 0 insertions, 22 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 diff --git a/src/qml/jsapi/qjsvalue.h b/src/qml/jsapi/qjsvalue.h index 091f353291..3da76d16cb 100644 --- a/src/qml/jsapi/qjsvalue.h +++ b/src/qml/jsapi/qjsvalue.h @@ -149,9 +149,6 @@ public: QJSValue callAsConstructor(const QJSValueList &args = QJSValueList()) const; ErrorType errorType() const; -#ifdef QT_DEPRECATED - QT_DEPRECATED QJSEngine *engine() const; -#endif private: friend class QJSValuePrivate; |