[poincare] Remove unneeded LayoutRefs

This commit is contained in:
Léa Saviot
2018-07-26 17:00:30 +02:00
parent 3b1fc4b3d5
commit d7b9fb509c
2 changed files with 0 additions and 23 deletions

View File

@@ -53,14 +53,6 @@ private:
void render(KDContext * ctx, KDPoint p, KDColor expressionColor, KDColor backgroundColor) override;
};
class BracketPairLayoutRef : public LayoutReference<BracketPairLayoutNode> {
public:
BracketPairLayoutRef(LayoutRef l) : LayoutReference<BracketPairLayoutNode>() {
addChildAtIndex(l, 0, nullptr);
}
BracketPairLayoutRef(TreeNode * n) : LayoutReference<BracketPairLayoutNode>(n) {}
};
}
#endif

View File

@@ -82,21 +82,6 @@ private:
void render(KDContext * ctx, KDPoint p, KDColor expressionColor, KDColor backgroundColor) override {}
};
class GridLayoutRef : public LayoutReference<GridLayoutNode> {
public:
GridLayoutRef(LayoutRef l1, LayoutRef l2) :
LayoutReference<GridLayoutNode>()
{
if (!(node()->isAllocationFailure())) {
typedNode()->setNumberOfRows(2);
typedNode()->setNumberOfColumns(1);
}
addChildTreeAtIndex(l1, 0);
addChildTreeAtIndex(l2, 1);
}
GridLayoutRef(TreeNode * t) : LayoutReference<GridLayoutNode>(t) {}
};
}
#endif