summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edmundson <kde@davidedmundson.co.uk>2011-06-25 14:50:10 (GMT)
committerDavid Edmundson <kde@davidedmundson.co.uk>2011-06-27 12:11:06 (GMT)
commite0799a6abef37f463a23a00c40491c6433a632c1 (patch)
treee089e8cc9b3d3ae9888a5f3732ad8bef5f412576
parent475aa2ac7c74dbf90f5ce52fecdb3ed8e4f5dc8f (diff)
downloadkde-telepathy-contact-list-e0799a6abef37f463a23a00c40491c6433a632c1.tar.gz
kde-telepathy-contact-list-e0799a6abef37f463a23a00c40491c6433a632c1.tar.xz
Removed an unused method removeContact(), which had very crashy-prone code in it.
Reivewed by: Martin Klapetek REVIEW: 101761
-rw-r--r--models/groups-model-item.cpp13
-rw-r--r--models/groups-model-item.h1
2 files changed, 0 insertions, 14 deletions
diff --git a/models/groups-model-item.cpp b/models/groups-model-item.cpp
index f01a7d6..12acbaa 100644
--- a/models/groups-model-item.cpp
+++ b/models/groups-model-item.cpp
@@ -117,19 +117,6 @@ void GroupsModelItem::removeProxyContact(ProxyTreeNode *proxyNode)
emit changed(this);
}
-void GroupsModelItem::removeContact(ContactModelItem* contact)
-{
- for (int i = 0; i < size(); i++) {
- ProxyTreeNode* proxyNode = qobject_cast<ProxyTreeNode*>(childAt(i));
- if (proxyNode->data(AccountsModel::ItemRole).value<ContactModelItem*>() == contact) {
- proxyNode->remove();
- }
- }
-
- //the group counters needs to be updated
- emit changed(this);
-}
-
void GroupsModelItem::countOnlineContacts()
{
int tmpCounter = 0;
diff --git a/models/groups-model-item.h b/models/groups-model-item.h
index 7fe99cc..f9ad206 100644
--- a/models/groups-model-item.h
+++ b/models/groups-model-item.h
@@ -51,7 +51,6 @@ public:
void addProxyContact(ProxyTreeNode* proxyNode);
void removeProxyContact(ProxyTreeNode* proxyNode);
- void removeContact(ContactModelItem* contact);
void countOnlineContacts();