Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Remove now unused members of KoShapeManager

Dmitry Kazakov306f324a6a08
diff --git a/libs/flake/KoShapeManager.cpp b/libs/flake/KoShapeManager.cpp
index 0f262578c4..188be15dd6 100644
--- a/libs/flake/KoShapeManager.cpp
+++ b/libs/flake/KoShapeManager.cpp
@@ -278,7 +278,6 @@ void KoShapeManager::Private::updateTree()
}
aggregate4update.clear();
- shapeIndexesBeforeUpdate.clear();
}
if (selectionModified) {
@@ -376,7 +375,6 @@ void KoShapeManager::setShapes(const QList<KoShape *> &shapes, Repaint repaint)
d->compressedUpdate = QRect();
d->compressedUpdatedShapes.clear();
d->aggregate4update.clear();
- d->shapeIndexesBeforeUpdate.clear();
d->tree.clear();
d->shapes.clear();
}
@@ -729,7 +727,6 @@ void KoShapeManager::notifyShapeChanged(KoShape *shape)
}
d->aggregate4update.insert(shape);
- d->shapeIndexesBeforeUpdate.insert(shape, shape->zIndex());
}
KoShapeContainer *container = dynamic_cast<KoShapeContainer*>(shape);
diff --git a/libs/flake/KoShapeManager_p.h b/libs/flake/KoShapeManager_p.h
index bd0abd71b4..1612e9e1e2 100644
--- a/libs/flake/KoShapeManager_p.h
+++ b/libs/flake/KoShapeManager_p.h
@@ -57,7 +57,6 @@ public:
KoCanvasBase *canvas;
KoRTree<KoShape *> tree;
QSet<KoShape *> aggregate4update;
- QHash<KoShape*, int> shapeIndexesBeforeUpdate;
KoShapeManager *q;
KoShapeManager::ShapeInterface shapeInterface;
QMutex shapesMutex;