diff --git a/apps/alternate_empty_nested_menu_controller.h b/apps/alternate_empty_nested_menu_controller.h index 3397cf66d..d310b15b6 100644 --- a/apps/alternate_empty_nested_menu_controller.h +++ b/apps/alternate_empty_nested_menu_controller.h @@ -12,7 +12,7 @@ public: void viewDidDisappear() override; protected: virtual ViewController * emptyViewController() = 0; - virtual bool isDisplayingEmptyController() = 0; + bool isDisplayingEmptyController() { return StackViewController::depth() == 2; } bool displayEmptyControllerIfNeeded(); }; diff --git a/apps/code/variable_box_controller.h b/apps/code/variable_box_controller.h index 0537c7f62..18a2bf4ca 100644 --- a/apps/code/variable_box_controller.h +++ b/apps/code/variable_box_controller.h @@ -32,7 +32,6 @@ public: //AlternateEmptyNestedMenuController ViewController * emptyViewController() override { return &m_variableBoxEmptyController; } - bool isDisplayingEmptyController() override { return StackViewController::depth() == 2; } //TODO LEA factorize with math toolbox /* VariableBoxController */ void loadFunctionsAndVariables(int scriptIndex, const char * textToAutocomplete, int textToAutocompleteLength); diff --git a/apps/math_variable_box_controller.h b/apps/math_variable_box_controller.h index 25bb29703..8e6052a11 100644 --- a/apps/math_variable_box_controller.h +++ b/apps/math_variable_box_controller.h @@ -47,7 +47,6 @@ private: const char * extension() const; Ion::Storage::Record recordAtIndex(int rowIndex); ViewController * emptyViewController() override; - bool isDisplayingEmptyController() override { return StackViewController::depth() == 2; } void resetMemoization(); void destroyRecordAtRowIndex(int rowIndex); Page m_currentPage;