Remove dead variable

This commit is contained in:
Méven Car 2021-04-09 07:43:06 +02:00
parent e831efc3b2
commit 46e987d034

View file

@ -1750,13 +1750,11 @@ void KItemListView::doLayout(LayoutAnimationHint hint, int changedIndex, int cha
const bool animate = (hint == Animation);
for (int i = firstVisibleIndex; i <= lastVisibleIndex; ++i) {
bool applyNewPos = true;
bool wasHidden = false;
const QRectF itemBounds = m_layouter->itemRect(i);
const QPointF newPos = itemBounds.topLeft();
KItemListWidget* widget = m_visibleItems.value(i);
if (!widget) {
wasHidden = true;
if (!reusableItems.isEmpty()) {
// Reuse a KItemListWidget instance from an invisible item
const int oldIndex = reusableItems.takeLast();