Cleanup: Remove redundant call to QV8GCCallback::registerGcPrologueCallback()
authorSimon Hausmann <simon.hausmann@nokia.com>
Tue, 13 Dec 2011 09:03:20 +0000 (10:03 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 14 Dec 2011 03:50:03 +0000 (04:50 +0100)
The same call is done a few lines above, and calling the function multiple times
has no effect after the first call.

Change-Id: Ibcf10ec88b0f5182d2963e4bfe532ff6a4e5a4ad
Reviewed-by: JÄ™drzej Nowacki <jedrzej.nowacki@nokia.com>

src/declarative/qml/v8/qv8engine.cpp

index 9ed14d3..9b29aec 100644 (file)
@@ -151,8 +151,6 @@ QV8Engine::QV8Engine(QJSEngine* qq, QJSEngine::ContextOwnership ownership)
     m_valueTypeWrapper.init(this);
     m_sequenceWrapper.init(this);
 
-    QV8GCCallback::registerGcPrologueCallback();
-
     {
     v8::Handle<v8::Value> v = global()->Get(v8::String::New("Object"))->ToObject()->Get(v8::String::New("getOwnPropertyNames"));
     m_getOwnPropertyNames = qPersistentNew<v8::Function>(v8::Handle<v8::Function>::Cast(v));