From bb1e23d8f02451f92a9fa0f2570de4dce065170c Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Tue, 25 Aug 2020 15:20:13 +0200 Subject: Remove deprecated function QJSValue::engine [ChangeLog][QJSValue] The deprecated function QJSValue::engine() has been removed. Change-Id: I2be35379e0a9e51f5371a2c98b955282955b7147 Reviewed-by: Ulf Hermann Reviewed-by: Qt CI Bot --- src/qml/jsapi/qjsvalue.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/qml/jsapi/qjsvalue.cpp') 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 -- cgit v1.2.3