aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlscriptdata_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/qml/qqmlscriptdata_p.h')
-rw-r--r--src/qml/qml/qqmlscriptdata_p.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/qml/qml/qqmlscriptdata_p.h b/src/qml/qml/qqmlscriptdata_p.h
index abbafc33c2..38b80e1bfa 100644
--- a/src/qml/qml/qqmlscriptdata_p.h
+++ b/src/qml/qml/qqmlscriptdata_p.h
@@ -65,14 +65,7 @@ QT_BEGIN_NAMESPACE
class QQmlTypeNameCache;
class QQmlContextData;
-// QQmlScriptData instances are created, uninitialized, by the loader in the
-// load thread. The first time they are used by the VME, they are initialized which
-// creates their v8 objects and they are referenced and added to the engine's cleanup
-// list. During QQmlCleanup::clear() all v8 resources are destroyed, and the
-// reference that was created is released but final deletion only occurs once all the
-// references as released. This is all intended to ensure that the v8 resources are
-// only created and destroyed in the main thread :)
-class Q_AUTOTEST_EXPORT QQmlScriptData : public QQmlCleanup, public QQmlRefCount
+class Q_AUTOTEST_EXPORT QQmlScriptData : public QQmlRefCount
{
private:
friend class QQmlTypeLoader;
@@ -89,13 +82,9 @@ public:
QQmlRefPointer<QV4::ExecutableCompilationUnit> compilationUnit() const { return m_precompiledScript; }
-protected:
- void clear() override; // From QQmlCleanup
-
private:
friend class QQmlScriptBlob;
- void initialize(QQmlEngine *);
QQmlRefPointer<QQmlContextData> qmlContextDataForContext(
const QQmlRefPointer<QQmlContextData> &parentQmlContextData);