scene/workspacescene: remove unused function
This commit is contained in:
parent
7f1f62e53e
commit
4ebb8530e6
1 changed files with 0 additions and 16 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue