[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepimlibs/akonadi
From:       Tom Albers <toma () kde ! org>
Date:       2010-01-13 22:03:41
Message-ID: 1263420221.236432.11298.nullmailer () svn ! kde ! org
[Download RAW message or body]

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)));


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic