[glom] Box_DB_Table: Remove unnecessary get_app_window() methods.



commit 347201d7608f577861f79482e64b9671ad65bf97
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Mar 29 17:47:16 2016 +0200

    Box_DB_Table: Remove unnecessary get_app_window() methods.
    
    They are already in a base class.

 glom/box_db_table.cc |   11 -----------
 glom/box_db_table.h  |    3 ---
 2 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/glom/box_db_table.cc b/glom/box_db_table.cc
index ce7da3c..9782cea 100644
--- a/glom/box_db_table.cc
+++ b/glom/box_db_table.cc
@@ -32,17 +32,6 @@ Box_DB_Table::Box_DB_Table(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Buil
 {
 }
 
-const Gtk::Window* Box_DB_Table::get_app_window() const
-{
-  auto nonconst = const_cast<Box_DB_Table*>(this);
-  return nonconst->get_app_window();
-}
-  
-Gtk::Window* Box_DB_Table::get_app_window()
-{
-  return dynamic_cast<Gtk::Window*>(get_toplevel());
-}
-
 void Box_DB_Table::handle_error(const Glib::Exception& ex)
 {
   Base_DB::handle_error(ex, get_app_window());
diff --git a/glom/box_db_table.h b/glom/box_db_table.h
index 0ecedf2..35d0545 100644
--- a/glom/box_db_table.h
+++ b/glom/box_db_table.h
@@ -43,9 +43,6 @@ public:
 protected:
   void handle_error(const Glib::Exception& ex);
   void handle_error(const std::exception& ex); //TODO_port: This is probably useless now.
-
-  Gtk::Window* get_app_window();
-  const Gtk::Window* get_app_window() const;
 };
 
 } //namespace Glom


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