From 0321378516d6abdf17b81ec1678db3ef61057bed Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 13 Dec 2011 10:03:20 +0100 Subject: [PATCH] Cleanup: Remove redundant call to QV8GCCallback::registerGcPrologueCallback() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/declarative/qml/v8/qv8engine.cpp | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/declarative/qml/v8/qv8engine.cpp b/src/declarative/qml/v8/qv8engine.cpp index 9ed14d3..9b29aec 100644 --- a/src/declarative/qml/v8/qv8engine.cpp +++ b/src/declarative/qml/v8/qv8engine.cpp @@ -151,8 +151,6 @@ QV8Engine::QV8Engine(QJSEngine* qq, QJSEngine::ContextOwnership ownership) m_valueTypeWrapper.init(this); m_sequenceWrapper.init(this); - QV8GCCallback::registerGcPrologueCallback(); - { v8::Handle v = global()->Get(v8::String::New("Object"))->ToObject()->Get(v8::String::New("getOwnPropertyNames")); m_getOwnPropertyNames = qPersistentNew(v8::Handle::Cast(v)); -- 1.7.2.5