aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlscriptdata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlscriptdata.cpp')
-rw-r--r--src/qml/qml/qqmlscriptdata.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/qml/qml/qqmlscriptdata.cpp b/src/qml/qml/qqmlscriptdata.cpp
index 50ec0e20cd..684564fcfb 100644
--- a/src/qml/qml/qqmlscriptdata.cpp
+++ b/src/qml/qml/qqmlscriptdata.cpp
@@ -117,11 +117,6 @@ QV4::ReturnedValue QQmlScriptData::scriptValueForContext(
QV4::ExecutionEngine *v4 = parentQmlContextData->engine()->handle();
QV4::Scope scope(v4);
- if (!hasEngine()) {
- addToEngine(parentQmlContextData->engine());
- addref();
- }
-
QV4::Scoped<QV4::QmlContext> qmlExecutionContext(scope);
if (auto qmlContextData = qmlContextDataForContext(parentQmlContextData)) {
qmlExecutionContext = QV4::QmlContext::create(v4->rootContext(), std::move(qmlContextData),
@@ -158,13 +153,4 @@ QV4::ReturnedValue QQmlScriptData::scriptValueForContext(
return value->asReturnedValue();
}
-void QQmlScriptData::clear()
-{
- typeNameCache = nullptr;
- scripts.clear();
-
- // An addref() was made when the QQmlCleanup was added to the engine.
- release();
-}
-
QT_END_NAMESPACE