diff options
Diffstat (limited to 'src/layout/DwindleLayout.cpp')
-rw-r--r-- | src/layout/DwindleLayout.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index ec874223..dc6e37dd 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -38,14 +38,6 @@ void SDwindleNodeData::recalcSizePosRecursive(bool force, bool horizontalOverrid } } -void SDwindleNodeData::getAllChildrenRecursive(std::vector<SDwindleNodeData*>* pVec) { - if (children[0]) { - children[0]->getAllChildrenRecursive(pVec); - children[1]->getAllChildrenRecursive(pVec); - } else - pVec->push_back(this); -} - int CHyprDwindleLayout::getNodesOnWorkspace(const WORKSPACEID& id) { int no = 0; for (auto const& n : m_lDwindleNodesData) { @@ -804,15 +796,6 @@ void CHyprDwindleLayout::recalculateWindow(PHLWINDOW pWindow) { PNODE->recalcSizePosRecursive(); } -static void addToVectorRecursive(std::vector<SDwindleNodeData*>* pVec, std::vector<SDwindleNodeData*>* pParents, SDwindleNodeData* node) { - if (node->isNode) { - pParents->emplace_back(node); - addToVectorRecursive(pVec, pParents, node->children[0]); - addToVectorRecursive(pVec, pParents, node->children[1]); - } else - pVec->emplace_back(node); -} - SWindowRenderLayoutHints CHyprDwindleLayout::requestRenderHints(PHLWINDOW pWindow) { // window should be valid, insallah SWindowRenderLayoutHints hints; |