From 4edaac883fa98d3c49f421a034b992ce43adc48e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Thu, 20 Sep 2018 16:46:14 +0200 Subject: [PATCH] [poincare] Remove dead code --- poincare/src/horizontal_layout.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/poincare/src/horizontal_layout.cpp b/poincare/src/horizontal_layout.cpp index d135a0dea..d3ad2c1d6 100644 --- a/poincare/src/horizontal_layout.cpp +++ b/poincare/src/horizontal_layout.cpp @@ -211,8 +211,6 @@ KDCoordinate HorizontalLayoutNode::computeBaseline() { KDPoint HorizontalLayoutNode::positionOfChild(LayoutNode * l) { assert(hasChild(l)); KDCoordinate x = 0; - int index = indexOfChild(l); - assert(index > -1); for (LayoutNode * c : children()) { if (c == l) { break;