From dca209305d39a3ab02a06fa3f74fef19a3f25da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Thu, 20 Sep 2018 12:01:15 +0200 Subject: [PATCH] [poincare] Remove code not used --- poincare/src/layout_cursor.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/poincare/src/layout_cursor.cpp b/poincare/src/layout_cursor.cpp index ed271fa97..71ba2f466 100644 --- a/poincare/src/layout_cursor.cpp +++ b/poincare/src/layout_cursor.cpp @@ -143,7 +143,6 @@ void LayoutCursor::insertText(const char * text) { } Layout newChild; Layout pointedChild; - bool specialUnderScore = false; for (int i = 0; i < textLength; i++) { if (text[i] == Ion::Charset::Empty) { continue; @@ -157,18 +156,6 @@ void LayoutCursor::insertText(const char * text) { } } else if (text[i] == ')') { newChild = RightParenthesisLayout(); - } else if (text[i] == '_') { - specialUnderScore = (i < textLength) && (text[i+1] == '{'); - if (!specialUnderScore) { - newChild = CharLayout('_'); - } else { - continue; - } - } else if (text[i] == '{' && specialUnderScore) { - newChild = CharLayout('('); //TODO ?? Was a char layout before, not a parenthesis left - } else if (text[i] == '}' && specialUnderScore) { - newChild = CharLayout(')'); //TODO - specialUnderScore = false; } /* We never insert text with brackets for now. Removing this code saves the * binary file 2K. */