From d64321d116817b201f4492598391be0dcb245c0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 6 Jan 2020 16:45:00 +0100 Subject: [PATCH] [apps/code] Remove useless class member in ConsoleController --- apps/code/console_controller.cpp | 3 +-- apps/code/console_controller.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/code/console_controller.cpp b/apps/code/console_controller.cpp index d8e8a2ee6..42cd951de 100644 --- a/apps/code/console_controller.cpp +++ b/apps/code/console_controller.cpp @@ -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) { diff --git a/apps/code/console_controller.h b/apps/code/console_controller.h index 60dcf67b5..a29e435e2 100644 --- a/apps/code/console_controller.h +++ b/apps/code/console_controller.h @@ -84,7 +84,6 @@ private: size_t firstNewLineCharIndex(const char * text, size_t length); StackViewController * stackViewController(); App * m_pythonDelegate; - int m_rowHeight; bool m_importScriptsWhenViewAppears; ConsoleStore m_consoleStore; SelectableTableView m_selectableTableView;