mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +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);
|
const bool animate = (hint == Animation);
|
||||||
for (int i = firstVisibleIndex; i <= lastVisibleIndex; ++i) {
|
for (int i = firstVisibleIndex; i <= lastVisibleIndex; ++i) {
|
||||||
bool applyNewPos = true;
|
bool applyNewPos = true;
|
||||||
bool wasHidden = false;
|
|
||||||
|
|
||||||
const QRectF itemBounds = m_layouter->itemRect(i);
|
const QRectF itemBounds = m_layouter->itemRect(i);
|
||||||
const QPointF newPos = itemBounds.topLeft();
|
const QPointF newPos = itemBounds.topLeft();
|
||||||
KItemListWidget* widget = m_visibleItems.value(i);
|
KItemListWidget* widget = m_visibleItems.value(i);
|
||||||
if (!widget) {
|
if (!widget) {
|
||||||
wasHidden = true;
|
|
||||||
if (!reusableItems.isEmpty()) {
|
if (!reusableItems.isEmpty()) {
|
||||||
// Reuse a KItemListWidget instance from an invisible item
|
// Reuse a KItemListWidget instance from an invisible item
|
||||||
const int oldIndex = reusableItems.takeLast();
|
const int oldIndex = reusableItems.takeLast();
|
||||||
|
|
Loading…
Reference in a new issue