scene/workspacescene: remove unused function

This commit is contained in:
Xaver Hugl 2024-08-02 20:04:31 +02:00
parent 7f1f62e53e
commit 4ebb8530e6

View file

@ -151,22 +151,6 @@ Item *WorkspaceScene::overlayItem() const
return m_overlayItem.get();
}
static SurfaceItem *findTopMostSurface(SurfaceItem *item)
{
if (!item->isVisible()) {
return nullptr;
}
const QList<Item *> children = item->sortedChildItems();
for (const auto &child : children | std::views::reverse) {
if (child->z() >= 0) {
if (auto item = findTopMostSurface(static_cast<SurfaceItem *>(child))) {
return item;
}
}
}
return item;
}
static bool addCandidates(SurfaceItem *item, QList<SurfaceItem *> &candidates, ssize_t maxCount)
{
const QList<Item *> children = item->sortedChildItems();