summaryrefslogtreecommitdiffstats
path: root/src/xmlpatterns
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmlpatterns')
-rw-r--r--src/xmlpatterns/api/qxmlschemavalidator.cpp1
-rw-r--r--src/xmlpatterns/schema/qxsdschemaparser.cpp3
2 files changed, 0 insertions, 4 deletions
diff --git a/src/xmlpatterns/api/qxmlschemavalidator.cpp b/src/xmlpatterns/api/qxmlschemavalidator.cpp
index 8008d0b..c8db2b4 100644
--- a/src/xmlpatterns/api/qxmlschemavalidator.cpp
+++ b/src/xmlpatterns/api/qxmlschemavalidator.cpp
@@ -206,7 +206,6 @@ bool QXmlSchemaValidator::validate(QIODevice *source, const QUrl &documentUri) c
return false;
}
- QXmlNodeModelIndex index = item.asNode();
const QAbstractXmlNodeModel *model = item.asNode().model();
QPatternist::XsdValidatedXmlNodeModel *validatedModel = new QPatternist::XsdValidatedXmlNodeModel(model);
diff --git a/src/xmlpatterns/schema/qxsdschemaparser.cpp b/src/xmlpatterns/schema/qxsdschemaparser.cpp
index 1abfa18..7620202 100644
--- a/src/xmlpatterns/schema/qxsdschemaparser.cpp
+++ b/src/xmlpatterns/schema/qxsdschemaparser.cpp
@@ -1731,12 +1731,9 @@ void XsdSchemaParser::parseUnion(const XsdSimpleType::Ptr &ptr)
// The memberTypes attribute is not allowed to be empty,
// so we keep track of that
- bool hasMemberTypesAttribute = false;
bool hasMemberTypesSpecified = false;
if (hasAttribute(QString::fromLatin1("memberTypes"))) {
- hasMemberTypesAttribute = true;
-
const QStringList memberTypes = readAttribute(QString::fromLatin1("memberTypes")).split(QLatin1Char(' '), QString::SkipEmptyParts);
QList<QXmlName> typeNames;