[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9

Maximiliano Curia maxy at moszumanska.debian.org
Mon May 9 09:04:32 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=1fe9317

The following commit has been merged in the master branch:
commit 1fe931742ab72f66d5d38262e0fd3b600eb8aeb0
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-common-internals packaging



More information about the pkg-kde-commits mailing list