lib: Remove unused QueueModel functions

These are only needed if implementing a tree, and not a list.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2015-01-13 16:49:10 -05:00
parent 6564860d27
commit 06853b4f31
2 changed files with 0 additions and 35 deletions

View File

@ -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;

View File

@ -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;