Get rid of QV8QObjectWrapper
authorSimon Hausmann <simon.hausmann@digia.com>
Fri, 7 Jun 2013 08:47:07 +0000 (10:47 +0200)
committerLars Knoll <lars.knoll@digia.com>
Fri, 7 Jun 2013 16:33:14 +0000 (18:33 +0200)
Change-Id: I3205a85cb9163d7b51cc58ba17f9056a2d50451c
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlcontextwrapper.cpp
src/qml/qml/v8/qv8engine.cpp
src/qml/qml/v8/qv8engine_p.h
src/qml/qml/v8/qv8qobjectwrapper.cpp
src/qml/qml/v8/qv8qobjectwrapper_p.h

index a9ff7a2..592472e 100644 (file)
@@ -286,8 +286,6 @@ void QmlContextWrapper::put(Managed *m, ExecutionContext *ctx, String *name, con
 
     QHashedV4String propertystring(Value::fromString(name));
 
-    QV8QObjectWrapper *qobjectWrapper = engine->qobjectWrapper();
-
     while (context) {
         // Search context properties
         if (context->propertyNames && -1 != context->propertyNames->value(propertystring))
index 4a25ddb..469f380 100644 (file)
@@ -101,7 +101,6 @@ QV8Engine::QV8Engine(QJSEngine* qq)
     m_v4Engine->v8Engine = this;
 
     QV4::QObjectWrapper::initializeBindings(m_v4Engine);
-    m_qobjectWrapper.init(this);
 }
 
 QV8Engine::~QV8Engine()
index de64af1..84e0769 100644 (file)
@@ -242,8 +242,6 @@ public:
     QJSEngine *publicEngine() { return q; }
     QV4::Value global();
 
-    QV8QObjectWrapper *qobjectWrapper() { return &m_qobjectWrapper; }
-
     void *xmlHttpRequestData() { return m_xmlHttpRequestData; }
 
     Deletable *listModelData() { return m_listModelData; }
@@ -310,8 +308,6 @@ protected:
 
     QV4::ExecutionEngine *m_v4Engine;
 
-    QV8QObjectWrapper m_qobjectWrapper;
-
     QV4::PersistentValue m_freezeObject;
 
     void *m_xmlHttpRequestData;
index 29d3524..d13c9c3 100644 (file)
@@ -963,24 +963,6 @@ private:
 };
 }
 
-QV8QObjectWrapper::QV8QObjectWrapper()
-: m_engine(0)
-{
-}
-
-QV8QObjectWrapper::~QV8QObjectWrapper()
-{
-}
-
-void QV8QObjectWrapper::destroy()
-{
-}
-
-void QV8QObjectWrapper::init(QV8Engine *engine)
-{
-    m_engine = engine;
-}
-
 namespace {
 struct CallArgs
 {
index 979def3..e00bed9 100644 (file)
@@ -197,23 +197,6 @@ private slots:
 
 }
 
-class Q_QML_PRIVATE_EXPORT QV8QObjectWrapper
-{
-public:
-    QV8QObjectWrapper();
-    ~QV8QObjectWrapper();
-
-    void init(QV8Engine *);
-    void destroy();
-
-private:
-    friend class QQmlPropertyCache;
-    friend struct QV4::QObjectWrapper;
-    friend struct QV4::QObjectSlotDispatcher;
-
-    QV8Engine *m_engine;
-};
-
 QT_END_NAMESPACE
 
 #endif // QV8QOBJECTWRAPPER_P_H