[glom] Remove unnecessary init() methods.



commit 9b3ced4dddaa47a99531e03357dc31d0d70c2269
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Jan 5 22:28:19 2016 +0100

    Remove unnecessary init() methods.

 glom/mode_data/datawidget/checkbutton.cc           |    6 ------
 glom/mode_data/datawidget/checkbutton.h            |    2 --
 .../mode_data/datawidget/combo_as_radio_buttons.cc |    8 --------
 glom/mode_data/datawidget/combo_as_radio_buttons.h |    1 -
 glom/mode_data/datawidget/combochoices.cc          |    5 -----
 glom/mode_data/datawidget/combochoices.h           |    1 -
 .../datawidget/combochoiceswithtreemodel.cc        |    6 ------
 .../datawidget/combochoiceswithtreemodel.h         |    1 -
 8 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/glom/mode_data/datawidget/checkbutton.cc b/glom/mode_data/datawidget/checkbutton.cc
index 5535a70..6fc84c1 100644
--- a/glom/mode_data/datawidget/checkbutton.cc
+++ b/glom/mode_data/datawidget/checkbutton.cc
@@ -38,12 +38,6 @@ CheckButton::CheckButton(const Glib::ustring& title)
 #ifndef GLOM_ENABLE_CLIENT_ONLY
   setup_menu(this);
 #endif // !GLOM_ENABLE_CLIENT_ONLY
-
-  init();
-}
-
-void CheckButton::init()
-{
 }
 
 #ifndef GLOM_ENABLE_CLIENT_ONLY
diff --git a/glom/mode_data/datawidget/checkbutton.h b/glom/mode_data/datawidget/checkbutton.h
index ea8ec76..4d280fb 100644
--- a/glom/mode_data/datawidget/checkbutton.h
+++ b/glom/mode_data/datawidget/checkbutton.h
@@ -47,8 +47,6 @@ public:
   Gnome::Gda::Value get_value() const override;    
 
 private:
-  void init();
-
 #ifndef GLOM_ENABLE_CLIENT_ONLY
   bool on_button_press_event(GdkEventButton *event) override;
 #endif // !GLOM_ENABLE_CLIENT_ONLY
diff --git a/glom/mode_data/datawidget/combo_as_radio_buttons.cc 
b/glom/mode_data/datawidget/combo_as_radio_buttons.cc
index a21ac15..83469e2 100644
--- a/glom/mode_data/datawidget/combo_as_radio_buttons.cc
+++ b/glom/mode_data/datawidget/combo_as_radio_buttons.cc
@@ -42,14 +42,6 @@ ComboAsRadioButtons::ComboAsRadioButtons()
 #ifndef GLOM_ENABLE_CLIENT_ONLY
   setup_menu(this);
 #endif // !GLOM_ENABLE_CLIENT_ONLY
-
-  init();
-}
-
-void ComboAsRadioButtons::init()
-{
-  //if(m_glom_type == Field::glom_field_type::NUMERIC)
-   // get_entry()->set_alignment(1.0); //Align numbers to the right.
 }
 
 void ComboAsRadioButtons::set_choices_with_second(const type_list_values_with_second& list_values)
diff --git a/glom/mode_data/datawidget/combo_as_radio_buttons.h 
b/glom/mode_data/datawidget/combo_as_radio_buttons.h
index b608665..f43ed62 100644
--- a/glom/mode_data/datawidget/combo_as_radio_buttons.h
+++ b/glom/mode_data/datawidget/combo_as_radio_buttons.h
@@ -69,7 +69,6 @@ public:
   Gnome::Gda::Value get_value() const override;
 
 private:
-  void init();
 
   typedef std::vector<Gnome::Gda::Value> type_list_values;
   typedef std::vector< std::pair<Gnome::Gda::Value, type_list_values> > type_list_values_with_second;
diff --git a/glom/mode_data/datawidget/combochoices.cc b/glom/mode_data/datawidget/combochoices.cc
index 6aa323c..d547d78 100644
--- a/glom/mode_data/datawidget/combochoices.cc
+++ b/glom/mode_data/datawidget/combochoices.cc
@@ -39,11 +39,6 @@ namespace DataWidgetChildren
 
 ComboChoices::ComboChoices()
 {
-  init();
-}
-
-void ComboChoices::init()
-{
 }
 
 bool ComboChoices::refresh_data_from_database_with_foreign_key(const Document* /* document */, const 
Gnome::Gda::Value& /* foreign_key_value */)
diff --git a/glom/mode_data/datawidget/combochoices.h b/glom/mode_data/datawidget/combochoices.h
index ae5bbf7..a42e067 100644
--- a/glom/mode_data/datawidget/combochoices.h
+++ b/glom/mode_data/datawidget/combochoices.h
@@ -65,7 +65,6 @@ public:
   bool refresh_data_from_database_with_foreign_key(const Document* document, const Gnome::Gda::Value& 
foreign_key_value);
 
 protected:
-  void init();
 
   //Gnome::Gda::Value m_value; //The last-stored value. We have this because the displayed value might be 
unparseable.
 };
diff --git a/glom/mode_data/datawidget/combochoiceswithtreemodel.cc 
b/glom/mode_data/datawidget/combochoiceswithtreemodel.cc
index b38a1b4..8716df5 100644
--- a/glom/mode_data/datawidget/combochoiceswithtreemodel.cc
+++ b/glom/mode_data/datawidget/combochoiceswithtreemodel.cc
@@ -42,7 +42,6 @@ namespace DataWidgetChildren
 ComboChoicesWithTreeModel::ComboChoicesWithTreeModel()
 : m_fixed_cell_height(0)
 {
-  init();
 }
 
 ComboChoicesWithTreeModel::~ComboChoicesWithTreeModel()
@@ -50,11 +49,6 @@ ComboChoicesWithTreeModel::~ComboChoicesWithTreeModel()
   delete_model();
 }
 
-void ComboChoicesWithTreeModel::init()
-{
-  ComboChoices::init();
-}
-
 int ComboChoicesWithTreeModel::get_fixed_model_text_column() const
 {
   const auto count = m_refModel->get_n_columns();
diff --git a/glom/mode_data/datawidget/combochoiceswithtreemodel.h 
b/glom/mode_data/datawidget/combochoiceswithtreemodel.h
index 1b55629..40d7976 100644
--- a/glom/mode_data/datawidget/combochoiceswithtreemodel.h
+++ b/glom/mode_data/datawidget/combochoiceswithtreemodel.h
@@ -50,7 +50,6 @@ public:
   Glib::RefPtr<Gtk::TreeModel> get_choices_model();
 
 protected:
-  void init();
   void create_model_non_db(guint columns_count);
 
   /** Get a suitable fixed height for cells, so we can display them more efficiently.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]