Skip to content

Commit

Permalink
Drop unused vficon_select_by_path() and vflist_select_by_path().
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Monin committed May 4, 2008
1 parent b6ea146 commit c2117e7
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 30 deletions.
1 change: 0 additions & 1 deletion src/view_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
18 changes: 0 additions & 18 deletions src/view_file_icon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/view_file_icon.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
9 changes: 0 additions & 9 deletions src/view_file_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion src/view_file_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c2117e7

Please sign in to comment.