Commit 46e987d0 authored by Méven Car's avatar Méven Car
Browse files

Remove dead variable

parent e831efc3
Pipeline #57072 passed with stage
in 6 minutes and 56 seconds
......@@ -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();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment