[SCM] ktp-contact-list packaging branch, master, updated. debian/15.12.1-2-1070-g6c56f91
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:06:50 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-contact-list.git;a=commitdiff;h=e0799a6
The following commit has been merged in the master branch:
commit e0799a6abef37f463a23a00c40491c6433a632c1
Author: David Edmundson <kde at davidedmundson.co.uk>
Date: Sat Jun 25 15:50:10 2011 +0100
Removed an unused method removeContact(), which had very crashy-prone code in it.
Reivewed by: Martin Klapetek
REVIEW: 101761
---
models/groups-model-item.cpp | 13 -------------
models/groups-model-item.h | 1 -
2 files changed, 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();
--
ktp-contact-list packaging
More information about the pkg-kde-commits
mailing list