aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmltypeloader.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-09-05 10:57:38 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-07 11:40:35 +0200
commitdea991ec5b6e1e8546dfd3695c12425ee27d2ef3 (patch)
treeffa3ba14ed0af5da2978f93ad2f24e61506b29a0 /src/qml/qml/qqmltypeloader.cpp
parentaa4ecdaaad6303f26cd99be3248aff510cca1e4e (diff)
Remove unused script parser options
Change-Id: Ie3aafe924011466ce2677e10cc69ece61a563db3 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmltypeloader.cpp')
-rw-r--r--src/qml/qml/qqmltypeloader.cpp27
1 files changed, 6 insertions, 21 deletions
diff --git a/src/qml/qml/qqmltypeloader.cpp b/src/qml/qml/qqmltypeloader.cpp
index ffba342491..3531e89779 100644
--- a/src/qml/qml/qqmltypeloader.cpp
+++ b/src/qml/qml/qqmltypeloader.cpp
@@ -1468,17 +1468,6 @@ QQmlImportDatabase *QQmlTypeLoader::importDatabase()
}
/*!
-\enum QQmlTypeLoader::Option
-
-This enum defines the options that control the way type data is handled.
-
-\value None The default value, indicating that no other options
- are enabled.
-\value PreserveParser The parser used to handle the type data is preserved
- after the data has been parsed.
-*/
-
-/*!
Returns a QQmlTypeData for the specified \a url. The QQmlTypeData may be cached.
*/
QQmlTypeData *QQmlTypeLoader::getType(const QUrl &url, Mode mode)
@@ -1492,7 +1481,7 @@ QQmlTypeData *QQmlTypeLoader::getType(const QUrl &url, Mode mode)
QQmlTypeData *typeData = m_typeCache.value(url);
if (!typeData) {
- typeData = new QQmlTypeData(url, None, this);
+ typeData = new QQmlTypeData(url, this);
// TODO: if (compiledData == 0), is it safe to omit this insertion?
m_typeCache.insert(url, typeData);
QQmlDataLoader::load(typeData, mode);
@@ -1506,14 +1495,12 @@ QQmlTypeData *QQmlTypeLoader::getType(const QUrl &url, Mode mode)
/*!
Returns a QQmlTypeData for the given \a data with the provided base \a url. The
QQmlTypeData will not be cached.
-
-The specified \a options control how the loader handles type data.
*/
-QQmlTypeData *QQmlTypeLoader::getType(const QByteArray &data, const QUrl &url, Options options)
+QQmlTypeData *QQmlTypeLoader::getType(const QByteArray &data, const QUrl &url)
{
LockHolder<QQmlTypeLoader> holder(this);
- QQmlTypeData *typeData = new QQmlTypeData(url, options, this);
+ QQmlTypeData *typeData = new QQmlTypeData(url, this);
QQmlDataLoader::loadWithStaticData(typeData, data);
return typeData;
@@ -1909,9 +1896,8 @@ QQmlTypeData::TypeDataCallback::~TypeDataCallback()
{
}
-QQmlTypeData::QQmlTypeData(const QUrl &url, QQmlTypeLoader::Options options,
- QQmlTypeLoader *manager)
-: QQmlTypeLoader::Blob(url, QmlFile, manager), m_options(options),
+QQmlTypeData::QQmlTypeData(const QUrl &url, QQmlTypeLoader *manager)
+: QQmlTypeLoader::Blob(url, QmlFile, manager),
m_typesResolved(false), m_compiledData(0), m_implicitImport(0), m_implicitImportLoaded(false)
{
}
@@ -2005,8 +1991,7 @@ void QQmlTypeData::done()
if (!isError())
compile();
- if (!(m_options & QQmlTypeLoader::PreserveParser))
- scriptParser.clear();
+ scriptParser.clear();
}
void QQmlTypeData::completed()