[poincare/layout_node] Remove unused method

This commit is contained in:
Ruben Dashyan
2020-03-03 10:11:01 +01:00
committed by LeaNumworks
parent afb1d18d65
commit aa4a33d849
2 changed files with 0 additions and 11 deletions

View File

@@ -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();

View File

@@ -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) {