From 06853b4f3135d8b9d872772dcbbd7330d13634d1 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Tue, 13 Jan 2015 16:49:10 -0500 Subject: [PATCH] lib: Remove unused QueueModel functions These are only needed if implementing a tree, and not a list. Signed-off-by: Anna Schumaker --- include/lib/model.h | 5 ----- lib/model.cpp | 30 ------------------------------ 2 files changed, 35 deletions(-) diff --git a/include/lib/model.h b/include/lib/model.h index 7c7c6c15..6103a973 100644 --- a/include/lib/model.h +++ b/include/lib/model.h @@ -21,13 +21,8 @@ protected: GType get_column_type_vfunc(int) const; void get_value_vfunc(const Gtk::TreeIter &, int, Glib::ValueBase &) const; bool iter_next_vfunc(const Gtk::TreeIter &, Gtk::TreeIter &) const; - bool iter_children_vfunc(const Gtk::TreeIter &, Gtk::TreeIter &) const; - bool iter_has_child_vfunc(const Gtk::TreeIter &) const; - int iter_n_children_vfunc(const Gtk::TreeIter &) const; int iter_n_root_children_vfunc() const; - bool iter_nth_child_vfunc(const Gtk::TreeIter &, int, Gtk::TreeIter &) const; bool iter_nth_root_child_vfunc(int, Gtk::TreeIter &) const; - bool iter_parent_vfunc(const Gtk::TreeIter &, Gtk::TreeIter &) const; Gtk::TreeModel::Path get_path_vfunc(const Gtk::TreeIter &) const; bool get_iter_vfunc(const Gtk::TreePath &, Gtk::TreeIter &) const; diff --git a/lib/model.cpp b/lib/model.cpp index 6630b55d..0a57aaa8 100644 --- a/lib/model.cpp +++ b/lib/model.cpp @@ -204,34 +204,11 @@ bool QueueModel::iter_next_vfunc(const Gtk::TreeIter &iter, return iter_nth_root_child_vfunc(++index, iter_next); } -bool QueueModel::iter_children_vfunc(const Gtk::TreeIter &parent, - Gtk::TreeIter &iter) const -{ - return iter_nth_child_vfunc(parent, 0, iter); -} - -bool QueueModel::iter_has_child_vfunc(const Gtk::TreeIter &iter) const -{ - return (iter_n_children_vfunc(iter) > 0); -} - -int QueueModel::iter_n_children_vfunc(const Gtk::TreeIter &iter) const -{ - return 0; -} - int QueueModel::iter_n_root_children_vfunc() const { return queue->size(); } -bool QueueModel::iter_nth_child_vfunc(const Gtk::TreeIter &parent, - int n, Gtk::TreeIter &iter) const -{ - iter = Gtk::TreeIter(); - return false; -} - bool QueueModel::iter_nth_root_child_vfunc(int n, Gtk::TreeIter &iter) const { iter = Gtk::TreeIter(); @@ -243,13 +220,6 @@ bool QueueModel::iter_nth_root_child_vfunc(int n, Gtk::TreeIter &iter) const return true; } -bool QueueModel::iter_parent_vfunc(const Gtk::TreeIter &child, - Gtk::TreeIter &iter) const -{ - iter = Gtk::TreeIter(); - return false; -} - Gtk::TreeModel::Path QueueModel::get_path_vfunc(const Gtk::TreeIter &iter) const { Gtk::TreeModel::Path path;