diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2014-03-06 16:55:09 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-07 15:33:19 +0100 |
commit | 99efe4309379482fce5c231885883e359bf85290 (patch) | |
tree | dbb9333a547fa1939bd63bd64136611e9fe82968 /tools | |
parent | 9fc17c08e5635cf112c6194e6c24af2a9c7caf00 (diff) |
Remove old compiler and VME
This removes the bulk of the code. A few smaller cleanups remain, to be
done in smaller changes as they move code around.
Additionally the "optimize" option of qqmlbundle was removed. It called QQmlScript::Parser::preparseData,
which however was not implemented and always returned an empty QByteArray. Therefore "optimize" would not
do anything and the class is gone now :)
Change-Id: I0c265e756704cb53c5250be1f69e4a3e1b6e64d5
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qmlbundle/main.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tools/qmlbundle/main.cpp b/tools/qmlbundle/main.cpp index 6b0a66518f..041041b91a 100644 --- a/tools/qmlbundle/main.cpp +++ b/tools/qmlbundle/main.cpp @@ -188,30 +188,6 @@ int main(int argc, char *argv[]) std::cout.write(fileEntry->contents(), fileEntry->fileSize()); } } - } else if (action == QLatin1String("optimize")) { - if (args.isEmpty()) { - usage(action, "You must specify a bundle"); - return EXIT_FAILURE; - } - const QString bundleFileName = args.takeFirst(); - QQmlBundle bundle(bundleFileName); - if (bundle.open(QFile::ReadWrite)) { - QList<const QQmlBundle::FileEntry *> files = bundle.files(); - for (int ii = 0; ii < files.count(); ++ii) { - const QQmlBundle::FileEntry *file = files.at(ii); - - if (!file->fileName().endsWith(".qml")) - continue; - - QQmlScript::Parser parser; - QString data = QString::fromUtf8(file->contents(), file->fileSize()); - parser.parse(data, QByteArray()); - QByteArray preparse = parser.preparseData(); - - if (!preparse.isEmpty()) - bundle.addMetaLink(file->fileName(), QLatin1String("qml:preparse"), preparse); - } - } } else { showHelp(); } |