diff --git a/poincare/include/poincare/layout_node.h b/poincare/include/poincare/layout_node.h index 5ec8855c3..afad9aae1 100644 --- a/poincare/include/poincare/layout_node.h +++ b/poincare/include/poincare/layout_node.h @@ -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(); diff --git a/poincare/src/layout_node.cpp b/poincare/src/layout_node.cpp index 2c50dd9a6..7c33a2f3d 100644 --- a/poincare/src/layout_node.cpp +++ b/poincare/src/layout_node.cpp @@ -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) {