From ee69d7cb646015c58b72277f6d1668bdad612dd0 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Mon, 17 May 2010 11:30:24 +0000 Subject: don't emit warnings when accessing inexistent roster entries --- source/QXmppRoster.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'source/QXmppRoster.cpp') diff --git a/source/QXmppRoster.cpp b/source/QXmppRoster.cpp index a71158e3..c150e5b8 100644 --- a/source/QXmppRoster.cpp +++ b/source/QXmppRoster.cpp @@ -141,10 +141,7 @@ QXmppRoster::QXmppRosterEntry QXmppRoster::getRosterEntry( if(m_entries.contains(bareJid)) return m_entries.value(bareJid); else - { - qWarning("QXmppRoster::getRosterEntry(): bareJid doesn't exist in roster db"); return QXmppRoster::QXmppRosterEntry(); - } } /// [OBSOLETE] Returns all the roster entries in the database. @@ -205,10 +202,7 @@ QXmppPresence QXmppRoster::getPresence(const QString& bareJid, if(m_presences.contains(bareJid) && m_presences[bareJid].contains(resource)) return m_presences[bareJid][resource]; else - { - qWarning("QXmppRoster::getPresence(): invalid bareJid"); return QXmppPresence(); - } } /// [OBSOLETE] Returns all the presence entries in the database. -- cgit v1.2.3