From kde-commits Wed Jan 13 22:03:41 2010 From: Tom Albers Date: Wed, 13 Jan 2010 22:03:41 +0000 To: kde-commits Subject: KDE/kdepimlibs/akonadi Message-Id: <1263420221.236432.11298.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=126342024223451 SVN commit 1074342 by toma: Remove unused vars. M +2 -0 kdescendantsproxymodel.cpp M +0 -7 krecursivefilterproxymodel.cpp --- trunk/KDE/kdepimlibs/akonadi/kdescendantsproxymodel.cpp #1074341:1074342 @@ -742,6 +742,8 @@ int KDescendantsProxyModel::columnCount(const QModelIndex &index) const { + Q_UNUSED( index ); + if (!sourceModel()) return 0; --- trunk/KDE/kdepimlibs/akonadi/krecursivefilterproxymodel.cpp #1074341:1074342 @@ -115,8 +115,6 @@ return; } - int start = -1; - int end = -1; bool requireRow = false; for (int row = source_top_left.row(); row <= source_bottom_right.row(); ++row) if (q->filterAcceptsRow(row, source_parent)) @@ -138,7 +136,6 @@ Q_ASSERT(index.isValid()); QModelIndex lastAscendant = index; QModelIndex sourceAscendant = index.parent(); - int lastRow; // We got a matching descendant, so find the right place to insert the row. // We need to tell the QSortFilterProxyModel that the first child between an existing row in the model // has changed data so that it will get a mapping. @@ -226,8 +223,6 @@ void KRecursiveFilterProxyModelPrivate::sourceRowsRemoved(const QModelIndex &source_parent, int start, int end) { - Q_Q(KRecursiveFilterProxyModel); - if (completeRemove) { completeRemove = false; @@ -285,8 +280,6 @@ void KRecursiveFilterProxyModel::setSourceModel(QAbstractItemModel* model) { - Q_D(KRecursiveFilterProxyModel); - // Standard disconnect. disconnect(model, SIGNAL(dataChanged(QModelIndex,QModelIndex)), this, SLOT(sourceDataChanged(QModelIndex,QModelIndex)));