diff options
author | Jarek Kobus <jaroslaw.kobus@theqtcompany.com> | 2016-05-02 15:06:51 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@theqtcompany.com> | 2016-05-02 13:59:07 +0000 |
commit | 12f6b53d228932efc45c6188653b9d61e5dcb133 (patch) | |
tree | 71c4a9aa44d74e7689b2a862d4be0aea1d51cb9a | |
parent | 91cdd717d613fc211ba4565b0171a149e5ac354d (diff) |
Remove dead code
This condition won't be hit since we did "skipCurrentElement" and
continued in this case on the beginning of QXmlStreamReader::StartElement
Change-Id: I002d4215adad7f237d57f8c93eb1de7881f095ad
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
-rw-r--r-- | src/scxml/qscxmlparser.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/scxml/qscxmlparser.cpp b/src/scxml/qscxmlparser.cpp index 312b5ed..57e14f1 100644 --- a/src/scxml/qscxmlparser.cpp +++ b/src/scxml/qscxmlparser.cpp @@ -2224,10 +2224,6 @@ void QScxmlParserPrivate::parse() } m_doc->root = new DocumentModel::Scxml(xmlLocation()); auto scxml = m_doc->root; - if (m_reader->namespaceUri() != scxmlNamespace) { - addError(QStringLiteral("default namespace must be set with xmlns=\"%1\" in the scxml tag").arg(scxmlNamespace)); - return; - } if (attributes.hasAttribute(QStringLiteral("initial"))) { QString initial = attributes.value(QStringLiteral("initial")).toString(); scxml->initial += initial.split(QChar::Space, QString::SkipEmptyParts); |