mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[poincare/layout_node] Remove unused method
This commit is contained in:
committed by
LeaNumworks
parent
afb1d18d65
commit
aa4a33d849
@@ -61,7 +61,6 @@ public:
|
||||
|
||||
// Rendering
|
||||
void draw(KDContext * ctx, KDPoint p, KDColor expressionColor = KDColorBlack, KDColor backgroundColor = KDColorWhite, Layout * selectionStart = nullptr, Layout * selectionEnd = nullptr, KDColor selectionColor = KDColorRed);
|
||||
KDPoint origin();
|
||||
KDPoint absoluteOrigin();
|
||||
KDSize layoutSize();
|
||||
KDCoordinate baseline();
|
||||
|
||||
@@ -39,16 +39,6 @@ void LayoutNode::draw(KDContext * ctx, KDPoint p, KDColor expressionColor, KDCol
|
||||
}
|
||||
}
|
||||
|
||||
KDPoint LayoutNode::origin() {
|
||||
LayoutNode * p = parent();
|
||||
if (p == nullptr) {
|
||||
return absoluteOrigin();
|
||||
} else {
|
||||
return KDPoint(absoluteOrigin().x() - p->absoluteOrigin().x(),
|
||||
absoluteOrigin().y() - p->absoluteOrigin().y());
|
||||
}
|
||||
}
|
||||
|
||||
KDPoint LayoutNode::absoluteOrigin() {
|
||||
LayoutNode * p = parent();
|
||||
if (!m_positioned) {
|
||||
|
||||
Reference in New Issue
Block a user