aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2011-01-21 13:28:59 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2011-01-21 13:28:59 +0000
commitb0faa20df3346fa7b8a3ab938d9a4c4a2e3eac5d (patch)
tree5020606b5dc9309edd06044e1e417cc86675b4bb /src
parente50cf894f2011e349a62c0f045dcf937822c2e3a (diff)
downloadqxmpp-b0faa20df3346fa7b8a3ab938d9a4c4a2e3eac5d.tar.gz
remove helperToXmlAddNumberElement(), it was only used once
Diffstat (limited to 'src')
-rw-r--r--src/QXmppPresence.cpp2
-rw-r--r--src/QXmppUtils.cpp6
-rw-r--r--src/QXmppUtils.h2
3 files changed, 1 insertions, 9 deletions
diff --git a/src/QXmppPresence.cpp b/src/QXmppPresence.cpp
index c6562ae5..567341b8 100644
--- a/src/QXmppPresence.cpp
+++ b/src/QXmppPresence.cpp
@@ -449,7 +449,7 @@ void QXmppPresence::Status::toXml(QXmlStreamWriter *xmlWriter) const
if (!m_statusText.isEmpty())
helperToXmlAddTextElement(xmlWriter, "status", m_statusText);
if (m_priority != 0)
- helperToXmlAddNumberElement(xmlWriter, "priority", m_priority);
+ helperToXmlAddTextElement(xmlWriter, "priority", QString::number(m_priority));
}
/// Returns the photo-hash of the VCardUpdate.
diff --git a/src/QXmppUtils.cpp b/src/QXmppUtils.cpp
index d8dfaf48..a6a28298 100644
--- a/src/QXmppUtils.cpp
+++ b/src/QXmppUtils.cpp
@@ -328,12 +328,6 @@ void helperToXmlAddDomElement(QXmlStreamWriter* stream, const QDomElement& eleme
stream->writeEndElement();
}
-
-void helperToXmlAddNumberElement(QXmlStreamWriter* stream, const QString& name, int value)
-{
- stream->writeTextElement( name, QString::number(value));
-}
-
void helperToXmlAddTextElement(QXmlStreamWriter* stream, const QString& name,
const QString& value)
{
diff --git a/src/QXmppUtils.h b/src/QXmppUtils.h
index 92a253b5..80d84240 100644
--- a/src/QXmppUtils.h
+++ b/src/QXmppUtils.h
@@ -62,7 +62,5 @@ void helperToXmlAddDomElement(QXmlStreamWriter* stream,
const QDomElement& element, const QStringList &omitNamespaces);
void helperToXmlAddTextElement(QXmlStreamWriter* stream, const QString& name,
const QString& value);
-void helperToXmlAddNumberElement(QXmlStreamWriter* stream, const QString& name,
- int value);
#endif // QXMPPUTILS_H