aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppRpcIq.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-03-04 09:15:34 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-03-04 09:15:34 +0000
commit628112acd69f4bf794c4d417d2c3bced1712cba3 (patch)
tree05c03373ad3ca732cd4444a9d46f3f3c935f7f2b /source/QXmppRpcIq.cpp
parentc2a7a03e30d1d99e57172c94c106fdc842dfbf25 (diff)
downloadqxmpp-628112acd69f4bf794c4d417d2c3bced1712cba3.tar.gz
make error parsing private to QXmppStanza::Error
Diffstat (limited to 'source/QXmppRpcIq.cpp')
-rw-r--r--source/QXmppRpcIq.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/source/QXmppRpcIq.cpp b/source/QXmppRpcIq.cpp
index 4e9fed2f..985fc562 100644
--- a/source/QXmppRpcIq.cpp
+++ b/source/QXmppRpcIq.cpp
@@ -39,22 +39,6 @@ void QXmppRpcErrorIq::parse(const QDomElement &element)
QXmppStanza::parse(element);
setTypeFromStr(element.attribute("type"));
-
- QDomElement errorElement = element.firstChildElement("error");
- QXmppStanza::Error error;
- error.setTypeFromStr( errorElement.attribute("type"));
-
- QDomElement conditionElement = errorElement.firstChildElement();
- while(!conditionElement.isNull())
- {
- if(conditionElement.namespaceURI() == ns_stanza)
- {
- error.setConditionFromStr( conditionElement.tagName() );
- }
- conditionElement = conditionElement.nextSiblingElement();
- }
-
- setError( error );
}
QXmppRpcResponseIq::QXmppRpcResponseIq() : QXmppIq( QXmppIq::Result )