diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-28 04:58:31 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-04-28 05:08:08 (GMT) |
commit | ced09b4453c4be5897d41288963da20f31742579 (patch) | |
tree | 3a1215f5e1a340aa5d06deaad54548e85951d5ac | |
parent | 1e39096b259ff7979986911bf71f868edceec547 (diff) | |
download | Qt-ced09b4453c4be5897d41288963da20f31742579.zip Qt-ced09b4453c4be5897d41288963da20f31742579.tar.gz Qt-ced09b4453c4be5897d41288963da20f31742579.tar.bz2 |
Remove unused variable
-rw-r--r-- | src/declarative/qml/qdeclarativecompiler.cpp | 4 | ||||
-rw-r--r-- | src/declarative/qml/qdeclarativecompiler_p.h | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/declarative/qml/qdeclarativecompiler.cpp b/src/declarative/qml/qdeclarativecompiler.cpp index 59a0d4d..f64efcb 100644 --- a/src/declarative/qml/qdeclarativecompiler.cpp +++ b/src/declarative/qml/qdeclarativecompiler.cpp @@ -688,14 +688,12 @@ void QDeclarativeCompiler::compileTree(Object *tree) def.type = QDeclarativeInstruction::SetDefault; output->bytecode << def; - output->imports = unit->imports; - output->importCache = new QDeclarativeTypeNameCache(engine); for (int ii = 0; ii < importedScriptIndexes.count(); ++ii) output->importCache->add(importedScriptIndexes.at(ii), ii); - output->imports.cache(output->importCache, engine); + unit->imports.cache(output->importCache, engine); Q_ASSERT(tree->metatype); diff --git a/src/declarative/qml/qdeclarativecompiler_p.h b/src/declarative/qml/qdeclarativecompiler_p.h index fefab7a..cd612d8 100644 --- a/src/declarative/qml/qdeclarativecompiler_p.h +++ b/src/declarative/qml/qdeclarativecompiler_p.h @@ -84,7 +84,6 @@ public: QString name; QUrl url; - QDeclarativeEnginePrivate::Imports imports; QDeclarativeTypeNameCache *importCache; struct TypeReference |