[telepathy-qt4/master] ContactManager: Removed contactGroups method in favor of Contact::groups().
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Wed Jul 22 21:46:15 PDT 2009
---
TelepathyQt4/contact-manager.cpp | 19 -------------------
TelepathyQt4/contact-manager.h | 1 -
2 files changed, 0 insertions(+), 20 deletions(-)
diff --git a/TelepathyQt4/contact-manager.cpp b/TelepathyQt4/contact-manager.cpp
index 48d60a8..1bc82ea 100644
--- a/TelepathyQt4/contact-manager.cpp
+++ b/TelepathyQt4/contact-manager.cpp
@@ -263,25 +263,6 @@ PendingOperation *ContactManager::removeGroup(const QString &group)
}
/**
- * Return a list of user-defined contact list groups a given contact
- * \a contact belongs.
- *
- * This method requires Connection::FeatureRosterGroups to be enabled.
- *
- * \param contact Contact to get the groups from.
- * \return List of user-defined contact list groups names for a given contact.
- * \sa groupContacts()
- */
-QStringList ContactManager::contactGroups(const ContactPtr &contact) const
-{
- if (!contact) {
- return QStringList();
- }
-
- return contact->groups();
-}
-
-/**
* Return a list of contacts on a given user-defined contact list group
* named \a group.
*
diff --git a/TelepathyQt4/contact-manager.h b/TelepathyQt4/contact-manager.h
index 92ac870..8f1ac7e 100644
--- a/TelepathyQt4/contact-manager.h
+++ b/TelepathyQt4/contact-manager.h
@@ -59,7 +59,6 @@ public:
PendingOperation *addGroup(const QString &group);
PendingOperation *removeGroup(const QString &group);
- QStringList contactGroups(const ContactPtr &contact) const;
Contacts groupContacts(const QString &group) const;
PendingOperation *groupAddContacts(const QString &group,
const QList<ContactPtr> &contacts);
--
1.5.6.5
More information about the telepathy-commits
mailing list