mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-22 07:10:40 +01:00
[poincare] Remove unneeded LayoutRefs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user