Mercurial > geeqie
changeset 578:d31008c98f10
Drop unused vficon_select_by_path() and vflist_select_by_path().
author | zas_ |
---|---|
date | Sun, 04 May 2008 23:06:46 +0000 |
parents | 5ded871a0968 |
children | 2ef88100cee2 |
files | src/view_file.h src/view_file_icon.c src/view_file_icon.h src/view_file_list.c src/view_file_list.h |
diffstat | 5 files changed, 0 insertions(+), 30 deletions(-) [+] |
line wrap: on
line diff
--- a/src/view_file.h Sun May 04 23:03:36 2008 +0000 +++ b/src/view_file.h Sun May 04 23:06:46 2008 +0000 @@ -42,7 +42,6 @@ void vf_select_all(ViewFile *vf); void vf_select_none(ViewFile *vf); -void vf_select_by_path(ViewFile *vf, const gchar *path); void vf_select_by_fd(ViewFile *vf, FileData *fd); void vf_mark_to_selection(ViewFile *vf, gint mark, MarkToSelectionMode mode);
--- a/src/view_file_icon.c Sun May 04 23:03:36 2008 +0000 +++ b/src/view_file_icon.c Sun May 04 23:06:46 2008 +0000 @@ -1011,24 +1011,6 @@ vficon_set_focus(vf, id); } - -void vficon_select_by_path(ViewFile *vf, const gchar *path) -{ - IconData *id = NULL; - GList *work; - - if (!path) return; - - work = vf->list; - while (work && !id) - { - IconData *chk = work->data; - work = work->next; - if (strcmp(chk->fd->path, path) == 0) id = chk; - } - vficon_select_by_id(vf, id); -} - void vficon_select_by_fd(ViewFile *vf, FileData *fd) { IconData *id = NULL;
--- a/src/view_file_icon.h Sun May 04 23:03:36 2008 +0000 +++ b/src/view_file_icon.h Sun May 04 23:06:46 2008 +0000 @@ -41,7 +41,6 @@ void vficon_select_all(ViewFile *vf); void vficon_select_none(ViewFile *vf); -void vficon_select_by_path(ViewFile *vf, const gchar *path); void vficon_select_by_fd(ViewFile *vf, FileData *fd); void vficon_mark_to_selection(ViewFile *vf, gint mark, MarkToSelectionMode mode);
--- a/src/view_file_list.c Sun May 04 23:03:36 2008 +0000 +++ b/src/view_file_list.c Sun May 04 23:06:46 2008 +0000 @@ -1524,15 +1524,6 @@ gtk_tree_selection_unselect_all(selection); } -void vflist_select_by_path(ViewFile *vf, const gchar *path) -{ - FileData *fd; - - if (vflist_row_by_path(vf, path, &fd) < 0) return; - - vflist_select_by_fd(vf, fd); -} - void vflist_select_by_fd(ViewFile *vf, FileData *fd) { GtkTreeIter iter;
--- a/src/view_file_list.h Sun May 04 23:03:36 2008 +0000 +++ b/src/view_file_list.h Sun May 04 23:06:46 2008 +0000 @@ -45,7 +45,6 @@ void vflist_select_all(ViewFile *vf); void vflist_select_none(ViewFile *vf); -void vflist_select_by_path(ViewFile *vf, const gchar *path); void vflist_select_by_fd(ViewFile *vf, FileData *fd); void vflist_mark_to_selection(ViewFile *vf, gint mark, MarkToSelectionMode mode);