# HG changeset patch # User zas_ # Date 1209942406 0 # Node ID d31008c98f10b040b4517513dcc66391fa9a3090 # Parent 5ded871a09688a2789e2a964ba95efc5fcb4903f Drop unused vficon_select_by_path() and vflist_select_by_path(). diff -r 5ded871a0968 -r d31008c98f10 src/view_file.h --- 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); diff -r 5ded871a0968 -r d31008c98f10 src/view_file_icon.c --- 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; diff -r 5ded871a0968 -r d31008c98f10 src/view_file_icon.h --- 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); diff -r 5ded871a0968 -r d31008c98f10 src/view_file_list.c --- 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; diff -r 5ded871a0968 -r d31008c98f10 src/view_file_list.h --- 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);