Drop unused vficon_select_by_path() and vflist_select_by_path().
authorLaurent Monin <geeqie@norz.org>
Sun, 4 May 2008 23:06:46 +0000 (23:06 +0000)
committerLaurent Monin <geeqie@norz.org>
Sun, 4 May 2008 23:06:46 +0000 (23:06 +0000)
src/view_file.h
src/view_file_icon.c
src/view_file_icon.h
src/view_file_list.c
src/view_file_list.h

index 919871d..86b31c9 100644 (file)
@@ -42,7 +42,6 @@ GList *vf_selection_get_list_by_index(ViewFile *vf);
 
 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);
index 615eccd..3b08c0d 100644 (file)
@@ -1011,24 +1011,6 @@ static void vficon_select_by_id(ViewFile *vf, IconData *id)
        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;
index fd78dc3..331d519 100644 (file)
@@ -41,7 +41,6 @@ GList *vficon_selection_get_list_by_index(ViewFile *vf);
 
 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);
index 0778c8e..3719d3d 100644 (file)
@@ -1524,15 +1524,6 @@ void vflist_select_none(ViewFile *vf)
        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;
index 3c00455..fe829a0 100644 (file)
@@ -45,7 +45,6 @@ GList *vflist_selection_get_list_by_index(ViewFile *vf);
 
 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);