aboutsummaryrefslogtreecommitdiff
path: root/src/base
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2012-04-20 17:34:18 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2012-04-20 17:34:18 +0000
commitbab569167711d4eb8175d1148d0e672c9435f4fd (patch)
tree054419c1ab9d56b2adca6c8bcc2e40251982426c /src/base
parentbeabf3b7dae805b328214eed54f07e19c1c954ef (diff)
downloadqxmpp-bab569167711d4eb8175d1148d0e672c9435f4fd.tar.gz
remove QXmppStanza::Error::isValid
Diffstat (limited to 'src/base')
-rw-r--r--src/base/QXmppStanza.cpp5
-rw-r--r--src/base/QXmppStanza.h3
2 files changed, 0 insertions, 8 deletions
diff --git a/src/base/QXmppStanza.cpp b/src/base/QXmppStanza.cpp
index 3ee0e752..6c83451d 100644
--- a/src/base/QXmppStanza.cpp
+++ b/src/base/QXmppStanza.cpp
@@ -233,11 +233,6 @@ void QXmppStanza::Error::setConditionFromStr(const QString& type)
setCondition(static_cast<QXmppStanza::Error::Condition>(-1));
}
-bool QXmppStanza::Error::isValid() const
-{
- return !(getTypeStr().isEmpty() && getConditionStr().isEmpty());
-}
-
void QXmppStanza::Error::parse(const QDomElement &errorElement)
{
setCode(errorElement.attribute("code").toInt());
diff --git a/src/base/QXmppStanza.h b/src/base/QXmppStanza.h
index 6149c854..aaf60cd9 100644
--- a/src/base/QXmppStanza.h
+++ b/src/base/QXmppStanza.h
@@ -99,9 +99,6 @@ public:
void setType(Type type);
Type type() const;
- // FIXME : remove this once is gone
- bool isValid() const;
-
/// \cond
void parse(const QDomElement &element);
void toXml(QXmlStreamWriter *writer) const;