From b0faa20df3346fa7b8a3ab938d9a4c4a2e3eac5d Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Fri, 21 Jan 2011 13:28:59 +0000 Subject: remove helperToXmlAddNumberElement(), it was only used once --- src/QXmppPresence.cpp | 2 +- src/QXmppUtils.cpp | 6 ------ src/QXmppUtils.h | 2 -- 3 files changed, 1 insertion(+), 9 deletions(-) (limited to 'src') 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 -- cgit v1.2.3