[poincare] Remove dead code

This commit is contained in:
Léa Saviot
2018-09-20 16:46:14 +02:00
parent 6b8d8a1e55
commit 4edaac883f

View File

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