mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Remove dead variable
This commit is contained in:
parent
e831efc3b2
commit
46e987d034
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue