[apps/code] Remove useless class member in ConsoleController

This commit is contained in:
Émilie Feral
2020-01-06 16:45:00 +01:00
committed by Léa Saviot
parent e0bbc73b8b
commit d64321d116
2 changed files with 1 additions and 3 deletions

View File

@@ -28,7 +28,6 @@ ConsoleController::ConsoleController(Responder * parentResponder, App * pythonDe
TextFieldDelegate(),
MicroPython::ExecutionEnvironment(),
m_pythonDelegate(pythonDelegate),
m_rowHeight(GlobalPreferences::sharedGlobalPreferences()->font()->glyphSize().height()),
m_importScriptsWhenViewAppears(false),
m_selectableTableView(this, this, this, this),
m_editCell(this, pythonDelegate, this),
@@ -202,7 +201,7 @@ int ConsoleController::numberOfRows() const {
}
KDCoordinate ConsoleController::rowHeight(int j) {
return m_rowHeight;
return GlobalPreferences::sharedGlobalPreferences()->font()->glyphSize().height();
}
KDCoordinate ConsoleController::cumulatedHeightFromIndex(int j) {