[glom] Remove unused method.



commit 3e51f393f9f7af9fd221796b7d12764fab54170d
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Nov 3 18:03:30 2015 +0100

    Remove unused method.

 glom/mode_data/box_data_details.cc      |    2 --
 glom/mode_data/box_data_details.h       |    1 -
 glom/mode_find/box_data_details_find.cc |   30 ------------------------------
 glom/mode_find/box_data_details_find.h  |    1 -
 4 files changed, 0 insertions(+), 34 deletions(-)
---
diff --git a/glom/mode_data/box_data_details.cc b/glom/mode_data/box_data_details.cc
index 0cb8b31..74f79ab 100644
--- a/glom/mode_data/box_data_details.cc
+++ b/glom/mode_data/box_data_details.cc
@@ -392,8 +392,6 @@ bool Box_Data_Details::fill_from_database()
       }
     } //if(!fieldsToGet.empty())
 
-    //fill_related();
-
     set_unstored_data(false);
   }
 
diff --git a/glom/mode_data/box_data_details.h b/glom/mode_data/box_data_details.h
index af37848..75ed1da 100644
--- a/glom/mode_data/box_data_details.h
+++ b/glom/mode_data/box_data_details.h
@@ -89,7 +89,6 @@ protected:
 
   bool fill_from_database() override;
   void create_layout() override;
-  //virtual void fill_related();
 
   std::shared_ptr<Field> get_field_primary_key() const override;
   void set_found_set_from_primary_key_value();
diff --git a/glom/mode_find/box_data_details_find.cc b/glom/mode_find/box_data_details_find.cc
index 1e83880..5b60595 100644
--- a/glom/mode_find/box_data_details_find.cc
+++ b/glom/mode_find/box_data_details_find.cc
@@ -77,36 +77,6 @@ bool Box_Data_Details_Find::fill_from_database()
   return result;
 }
 
-//TODO: Remove this?
-void Box_Data_Details_Find::fill_related()
-{
-  //Clear existing pages:
-  //m_Notebook_Related.pages().clear();
-
-  //Get relationships from the document:
-  const auto vecRelationships = get_document()->get_relationships(m_table_name);
-
-  //Add the relationships:
-     /*
-  for(const auto& item : vecRelationships)
-  {
-     auto pBox = Gtk::manage(new Box_Data_List_Related());
-     std::cout <<  "Box_Data_Details::fill_related() 2:" << relationship->get_name() << std::endl;
-     m_Notebook_Related.pages().push_back( Gtk::Notebook_Helpers::TabElem(*pBox, relationship->get_name()) );
-     std::cout <<  "Box_Data_Details::fill_related() 2.5:" << std::endl;
-
-     guint rowKey = m_FieldsShown.get_index(relationship->get_from_field());
-     Glib::ustring strKeyValue = m_AddDel.get_value(rowKey);
-     strKeyValue = m_FieldsShown[rowKey].sql(strKeyValue); //Quote/Escape it if necessary.
-
-     std::cout <<  "Box_Data_Details::fill_related() 3:" << std::endl;
-     pBox->init_db_details(get_database_name(), relationship->get_to_table(), relationship->get_to_field(), 
strKeyValue);
-     pBox->show_all();
-  }
-  */
-}
-
-
 void Box_Data_Details_Find::on_flowtable_field_edited(const std::shared_ptr<const LayoutItem_Field>& /* id 
*/, const Gnome::Gda::Value& /* value */)
 {
   //Don't do anything.
diff --git a/glom/mode_find/box_data_details_find.h b/glom/mode_find/box_data_details_find.h
index 4b96d47..537a049 100644
--- a/glom/mode_find/box_data_details_find.h
+++ b/glom/mode_find/box_data_details_find.h
@@ -39,7 +39,6 @@ public:
 private:
 
   bool fill_from_database() override;
-  void fill_related();
 
   void on_flowtable_field_edited(const std::shared_ptr<const LayoutItem_Field>& id, const Gnome::Gda::Value& 
value) override;
 };


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