summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlscriptparser.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-05-05 03:48:29 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-05-05 03:48:29 (GMT)
commit6089208e78bdcb0091c0ba0bc2fbd2a4fc0806de (patch)
tree028c3e5cca89136c11cdcdebed74f1980a1c97f4 /src/declarative/qml/qmlscriptparser.cpp
parentb4b34a9a50c28cb65f81a12d94b61cc6f9a19051 (diff)
downloadQt-6089208e78bdcb0091c0ba0bc2fbd2a4fc0806de.zip
Qt-6089208e78bdcb0091c0ba0bc2fbd2a4fc0806de.tar.gz
Qt-6089208e78bdcb0091c0ba0bc2fbd2a4fc0806de.tar.bz2
Remove QML XML support
Diffstat (limited to 'src/declarative/qml/qmlscriptparser.cpp')
-rw-r--r--src/declarative/qml/qmlscriptparser.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/declarative/qml/qmlscriptparser.cpp b/src/declarative/qml/qmlscriptparser.cpp
index 618eb2e..d0051ac 100644
--- a/src/declarative/qml/qmlscriptparser.cpp
+++ b/src/declarative/qml/qmlscriptparser.cpp
@@ -1,6 +1,5 @@
#include "qmlscriptparser_p.h"
-#include "qmlxmlparser_p.h"
#include "qmlparser_p.h"
#include "parser/javascriptengine_p.h"
@@ -562,24 +561,6 @@ QmlScriptParser::~QmlScriptParser()
bool QmlScriptParser::parse(const QByteArray &data, const QUrl &url)
{
- if (QmlComponentPrivate::isXml(data)) {
- // parse using the XML parser.
- QmlXmlParser xmlParser;
- if (xmlParser.parse(data, url)) {
- _nameSpacePaths = xmlParser.nameSpacePaths();
- root = xmlParser.takeTree();
- _typeNames = xmlParser.types();
- return true;
- }
-
- QmlError error;
- error.setUrl(url);
- error.setDescription(xmlParser.errorDescription());
- _errors << error;
-
- return false;
- }
-
const QString fileName = url.toString();
QTextStream stream(data, QIODevice::ReadOnly);