[glom] Remove unused methods.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Remove unused methods.
- Date: Thu, 5 Nov 2015 22:20:56 +0000 (UTC)
commit 345ae281ce81aac2ec3e09588a0fb62123a07d10
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Nov 3 17:26:06 2015 +0100
Remove unused methods.
glom/mode_data/db_adddel/db_adddel.cc | 7 -------
glom/mode_data/db_adddel/db_adddel.h | 7 -------
glom/utility_widgets/adddel/adddel.cc | 6 ------
glom/utility_widgets/adddel/adddel.h | 9 ++-------
4 files changed, 2 insertions(+), 27 deletions(-)
---
diff --git a/glom/mode_data/db_adddel/db_adddel.cc b/glom/mode_data/db_adddel/db_adddel.cc
index fafe3df..3c05a38 100644
--- a/glom/mode_data/db_adddel/db_adddel.cc
+++ b/glom/mode_data/db_adddel/db_adddel.cc
@@ -1736,13 +1736,6 @@ guint DbAddDel::treeview_append_column(const Glib::ustring& title, Gtk::CellRend
return cols_count;
}
-
-DbAddDel::type_vec_strings DbAddDel::get_columns_order() const
-{
- //This list is rebuilt in on_treeview_columns_changed, but maybe we could just build it here.
- return m_vecColumnIDs;
-}
-
Glib::RefPtr<Gtk::TreeModel> DbAddDel::get_model()
{
return m_refListStore;
diff --git a/glom/mode_data/db_adddel/db_adddel.h b/glom/mode_data/db_adddel/db_adddel.h
index 9f84698..54eccf4 100644
--- a/glom/mode_data/db_adddel/db_adddel.h
+++ b/glom/mode_data/db_adddel/db_adddel.h
@@ -174,13 +174,6 @@ public:
std::shared_ptr<const LayoutItem_Field> get_column_field(guint column_index) const;
- typedef std::vector<Glib::ustring> type_vec_strings;
-
- /** Retrieves the column order, even after they have been reordered by the user.
- * @result a vector of column_id. These column_ids were provided in the call to add_column().
- */
- type_vec_strings get_columns_order() const;
-
void remove_all_columns();
/// For popup cells.
diff --git a/glom/utility_widgets/adddel/adddel.cc b/glom/utility_widgets/adddel/adddel.cc
index 62e1628..adccdba 100644
--- a/glom/utility_widgets/adddel/adddel.cc
+++ b/glom/utility_widgets/adddel/adddel.cc
@@ -1350,12 +1350,6 @@ void AddDel::on_treeview_columns_changed()
}
}
-AddDel::type_vec_strings AddDel::get_columns_order() const
-{
- //This list is rebuilt in on_treeview_columns_changed, but maybe we could just build it here.
- return m_vecColumnIDs;
-}
-
void AddDel::set_auto_add(bool value)
{
m_auto_add = value;
diff --git a/glom/utility_widgets/adddel/adddel.h b/glom/utility_widgets/adddel/adddel.h
index 0e7a10d..c5baa2b 100644
--- a/glom/utility_widgets/adddel/adddel.h
+++ b/glom/utility_widgets/adddel/adddel.h
@@ -152,18 +152,13 @@ public:
Glib::ustring get_column_field(guint column_index) const;
- typedef AddDelColumnInfo::type_vec_strings type_vec_strings;
-
- /** Retrieves the column order, even after they have been reordered by the user.
- * @result a vector of column_id. These column_ids were provided in the call to add_column().
- */
- type_vec_strings get_columns_order() const;
-
void remove_all_columns();
//void set_columns_count(guint count);
//void set_column_title(guint col, const Glib::ustring& strText);
void set_column_width(guint col, guint width);
+ typedef AddDelColumnInfo::type_vec_strings type_vec_strings;
+
/// For popup cells.
void set_column_choices(guint col, const type_vec_strings& vecStrings);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]