[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:05:46 UTC 2016


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

The following commit has been merged in the master branch:
commit 2d226a13faf754fd20335a009f7c0f7a34924642
Author: David Edmundson <kde at davidedmundson.co.uk>
Date:   Sat Apr 14 02:22:24 2012 +0100

    Remove the unused (for good reason) itemForIndex from AccountsListModel
---
 KTp/Models/accounts-list-model.cpp | 11 -----------
 KTp/Models/accounts-list-model.h   |  1 -
 2 files changed, 12 deletions(-)

diff --git a/KTp/Models/accounts-list-model.cpp b/KTp/Models/accounts-list-model.cpp
index bfad6b8..c7837bc 100644
--- a/KTp/Models/accounts-list-model.cpp
+++ b/KTp/Models/accounts-list-model.cpp
@@ -199,17 +199,6 @@ void AccountsListModel::removeAccount(const QModelIndex &index)
     accountItem->remove();
 }
 
-AccountItem* AccountsListModel::itemForIndex(const QModelIndex &index)
-{
-    if (!index.isValid()) {
-        kWarning() << "Invalid index" << index;
-        return 0;
-    }
-
-    AccountItem *accountItem = m_accounts.at(index.row());
-    return accountItem;
-}
-
 void AccountsListModel::onAccountItemRemoved()
 {
     AccountItem *item = qobject_cast<AccountItem*>(sender());
diff --git a/KTp/Models/accounts-list-model.h b/KTp/Models/accounts-list-model.h
index 2263a88..1791e67 100644
--- a/KTp/Models/accounts-list-model.h
+++ b/KTp/Models/accounts-list-model.h
@@ -52,7 +52,6 @@ public:
     virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
     void addAccount(const Tp::AccountPtr &account);
     void removeAccount(const QModelIndex &index);
-    AccountItem* itemForIndex(const QModelIndex &index);
 
 Q_SIGNALS:
     void setTitleForCustomPages(QString, QList<QString>);

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list