mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-20 22:30:30 +01:00
[poincare] Remove code not used
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user