From dfad4072f6fabf67822b2caed823df173cf8cdd4 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 28 Mar 2016 07:09:50 +0200 Subject: [PATCH] KSPM: Remove noisy local variable --- src/kselectionproxymodel.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/kselectionproxymodel.cpp b/src/kselectionproxymodel.cpp index 5169cec..33e59bd 100644 --- a/src/kselectionproxymodel.cpp +++ b/src/kselectionproxymodel.cpp @@ -1110,8 +1110,6 @@ QPair KSelectionProxyModelPrivate::beginRemoveRows(const QModelIndex & { Q_Q(const KSelectionProxyModel); - QPair pair = qMakePair(start, end); - if (m_omitChildren && !m_startWithChildTrees && !m_includeAllSelected) { // SubTreeRoots if (m_rootIndexList.contains(parent) || isDescendantOf(m_rootIndexList, parent)) { @@ -1124,7 +1122,7 @@ QPair KSelectionProxyModelPrivate::beginRemoveRows(const QModelIndex & if (!m_includeAllSelected && !m_omitChildren) { // SubTrees and SubTreesWithoutRoots if (proxyParent.isValid()) { - return pair; + return qMakePair(start, end); } if (m_startWithChildTrees && m_rootIndexList.contains(parent)) { // SubTreesWithoutRoots topLevel