From 7a8c07a1f85630ee8dd4e274dc8ef90cf43217c7 Mon Sep 17 00:00:00 2001 From: Christian Kamm <christian.d.kamm@nokia.com> Date: Wed, 25 Aug 2010 14:49:47 +0200 Subject: [PATCH] QmlJS: The Script type is no longer implicitly available. --- src/libs/qmljs/qmljslink.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libs/qmljs/qmljslink.cpp b/src/libs/qmljs/qmljslink.cpp index c076773821e..12b4497b9c8 100644 --- a/src/libs/qmljs/qmljslink.cpp +++ b/src/libs/qmljs/qmljslink.cpp @@ -160,11 +160,6 @@ void Link::populateImportedTypes(Interpreter::ObjectValue *typeEnv, Document::Pt if (! (doc->qmlProgram() && doc->qmlProgram()->imports)) return; - // Add the implicitly available Script type - const ObjectValue *scriptValue = engine()->cppQmlTypes().typeForImport("Script"); - if (scriptValue) - typeEnv->setProperty("Script", scriptValue); - // implicit imports: // qml files in the same directory are available without explicit imports foreach (Document::Ptr otherDoc, _snapshot.documentsInDirectory(doc->path())) { -- GitLab