From aa91ebfb149fda7881467e8167adee5fff8477e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 2 Jan 2017 15:55:18 +0100 Subject: [PATCH] [apps] Delete useless obsoletfunction in float parameter controller Change-Id: I2421de22519aacc2ef329cca12dc6fa3b6ad845d --- apps/float_parameter_controller.h | 1 - apps/graph/graph/goto_parameter_controller.cpp | 5 ----- apps/graph/graph/goto_parameter_controller.h | 1 - apps/graph/graph/window_parameter_controller.cpp | 5 ----- apps/graph/graph/window_parameter_controller.h | 1 - apps/graph/values/interval_parameter_controller.cpp | 5 ----- apps/graph/values/interval_parameter_controller.h | 1 - apps/probability/parameters_controller.cpp | 5 ----- apps/probability/parameters_controller.h | 1 - apps/statistics/histogram_parameter_controller.cpp | 5 ----- apps/statistics/histogram_parameter_controller.h | 1 - 11 files changed, 31 deletions(-) diff --git a/apps/float_parameter_controller.h b/apps/float_parameter_controller.h index f662e4add..a27320d29 100644 --- a/apps/float_parameter_controller.h +++ b/apps/float_parameter_controller.h @@ -10,7 +10,6 @@ class FloatParameterController : public ViewController, public SimpleListViewDataSource, public SelectableTableViewDelegate, public TextFieldDelegate { public: FloatParameterController(Responder * parentResponder); - virtual ExpressionTextFieldDelegate * textFieldDelegate() = 0; View * view() override; void didBecomeFirstResponder() override; KDCoordinate cellHeight() override; diff --git a/apps/graph/graph/goto_parameter_controller.cpp b/apps/graph/graph/goto_parameter_controller.cpp index d1392d88e..468686ec6 100644 --- a/apps/graph/graph/goto_parameter_controller.cpp +++ b/apps/graph/graph/goto_parameter_controller.cpp @@ -12,11 +12,6 @@ GoToParameterController::GoToParameterController(Responder * parentResponder, Gr { } -ExpressionTextFieldDelegate * GoToParameterController::textFieldDelegate() { - ExpressionTextFieldDelegate * myApp = (ExpressionTextFieldDelegate *)app(); - return myApp; -} - const char * GoToParameterController::title() const { return "Aller a"; } diff --git a/apps/graph/graph/goto_parameter_controller.h b/apps/graph/graph/goto_parameter_controller.h index a62bb99ea..57107c310 100644 --- a/apps/graph/graph/goto_parameter_controller.h +++ b/apps/graph/graph/goto_parameter_controller.h @@ -9,7 +9,6 @@ namespace Graph { class GoToParameterController : public FloatParameterController { public: GoToParameterController(Responder * parentResponder, GraphWindow * graphWindow); - ExpressionTextFieldDelegate * textFieldDelegate() override; const char * title() const override; int numberOfRows() override; TableViewCell * reusableCell(int index) override; diff --git a/apps/graph/graph/window_parameter_controller.cpp b/apps/graph/graph/window_parameter_controller.cpp index ed2e0341e..4569d3bfa 100644 --- a/apps/graph/graph/window_parameter_controller.cpp +++ b/apps/graph/graph/window_parameter_controller.cpp @@ -14,11 +14,6 @@ WindowParameterController::WindowParameterController(Responder * parentResponder { } -ExpressionTextFieldDelegate * WindowParameterController::textFieldDelegate() { - ExpressionTextFieldDelegate * myApp = (ExpressionTextFieldDelegate *)app(); - return myApp; -} - const char * WindowParameterController::title() const { return "Axes"; } diff --git a/apps/graph/graph/window_parameter_controller.h b/apps/graph/graph/window_parameter_controller.h index 4313f5694..c41a0568a 100644 --- a/apps/graph/graph/window_parameter_controller.h +++ b/apps/graph/graph/window_parameter_controller.h @@ -10,7 +10,6 @@ namespace Graph { class WindowParameterController : public FloatParameterController { public: WindowParameterController(Responder * parentResponder, GraphWindow * graphWindow); - ExpressionTextFieldDelegate * textFieldDelegate() override; const char * title() const override; int numberOfRows() override; TableViewCell * reusableCell(int index) override; diff --git a/apps/graph/values/interval_parameter_controller.cpp b/apps/graph/values/interval_parameter_controller.cpp index 34d6fcbb0..e47633c66 100644 --- a/apps/graph/values/interval_parameter_controller.cpp +++ b/apps/graph/values/interval_parameter_controller.cpp @@ -13,11 +13,6 @@ IntervalParameterController::IntervalParameterController(Responder * parentRespo { } -ExpressionTextFieldDelegate * IntervalParameterController::textFieldDelegate() { - ExpressionTextFieldDelegate * myApp = (ExpressionTextFieldDelegate *)app(); - return myApp; -} - const char * IntervalParameterController::title() const { return "Regler l'intervalle"; } diff --git a/apps/graph/values/interval_parameter_controller.h b/apps/graph/values/interval_parameter_controller.h index 43ff644c4..143053a22 100644 --- a/apps/graph/values/interval_parameter_controller.h +++ b/apps/graph/values/interval_parameter_controller.h @@ -10,7 +10,6 @@ namespace Graph { class IntervalParameterController : public FloatParameterController { public: IntervalParameterController(Responder * parentResponder, Interval * interval); - ExpressionTextFieldDelegate * textFieldDelegate() override; Interval * interval(); const char * title() const override; int numberOfRows() override; diff --git a/apps/probability/parameters_controller.cpp b/apps/probability/parameters_controller.cpp index 7548f40ee..9c4e2c49b 100644 --- a/apps/probability/parameters_controller.cpp +++ b/apps/probability/parameters_controller.cpp @@ -79,11 +79,6 @@ ParametersController::ParametersController(Responder * parentResponder) : { } -ExpressionTextFieldDelegate * ParametersController::textFieldDelegate() { - ExpressionTextFieldDelegate * myApp = (ExpressionTextFieldDelegate *)app(); - return myApp; -} - View * ParametersController::view() { return &m_contentView; } diff --git a/apps/probability/parameters_controller.h b/apps/probability/parameters_controller.h index 84b3a5b8e..3bed94bbb 100644 --- a/apps/probability/parameters_controller.h +++ b/apps/probability/parameters_controller.h @@ -11,7 +11,6 @@ namespace Probability { class ParametersController : public FloatParameterController { public: ParametersController(Responder * parentResponder); - ExpressionTextFieldDelegate * textFieldDelegate() override; View * view() override; const char * title() const override; void setLaw(Law * law); diff --git a/apps/statistics/histogram_parameter_controller.cpp b/apps/statistics/histogram_parameter_controller.cpp index 7b0fd34f1..b81e72541 100644 --- a/apps/statistics/histogram_parameter_controller.cpp +++ b/apps/statistics/histogram_parameter_controller.cpp @@ -12,11 +12,6 @@ HistogramParameterController::HistogramParameterController(Responder * parentRes { } -ExpressionTextFieldDelegate * HistogramParameterController::textFieldDelegate() { - ExpressionTextFieldDelegate * myApp = (ExpressionTextFieldDelegate *)app(); - return myApp; -} - const char * HistogramParameterController::title() const { return "Histogramme"; } diff --git a/apps/statistics/histogram_parameter_controller.h b/apps/statistics/histogram_parameter_controller.h index 785a37bd4..196ccaaa6 100644 --- a/apps/statistics/histogram_parameter_controller.h +++ b/apps/statistics/histogram_parameter_controller.h @@ -10,7 +10,6 @@ namespace Statistics { class HistogramParameterController : public FloatParameterController { public: HistogramParameterController(Responder * parentResponder, Data * data); - ExpressionTextFieldDelegate * textFieldDelegate() override; const char * title() const override; int numberOfRows() override; TableViewCell * reusableCell(int index) override;