[SCM] ktp-accounts-kcm packaging branch, master, updated. debian/15.12.1-1-1157-gc4589c5

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:02:05 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-accounts-kcm.git;a=commitdiff;h=edd63e0

The following commit has been merged in the master branch:
commit edd63e0ea982e9cae2ddaf017891603873b0f6b7
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
---
 src/accounts-list-model.cpp | 11 -----------
 src/accounts-list-model.h   |  1 -
 2 files changed, 12 deletions(-)

diff --git a/src/accounts-list-model.cpp b/src/accounts-list-model.cpp
index bfad6b8..c7837bc 100644
--- a/src/accounts-list-model.cpp
+++ b/src/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/src/accounts-list-model.h b/src/accounts-list-model.h
index 2263a88..1791e67 100644
--- a/src/accounts-list-model.h
+++ b/src/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-accounts-kcm packaging



More information about the pkg-kde-commits mailing list