# HG changeset patch # User zas_ # Date 1210538301 0 # Node ID 6e9413e92be5074e8f847101a0de9ff44b9096f0 # Parent 026f8f97361cadea9e738f8e96c1de3276098139 Drop unused layout_list_get_path() and vf*_index_get_path(). diff -r 026f8f97361c -r 6e9413e92be5 src/layout.c --- a/src/layout.c Sun May 11 13:17:38 2008 +0000 +++ b/src/layout.c Sun May 11 20:38:21 2008 +0000 @@ -784,15 +784,6 @@ return 0; } -const gchar *layout_list_get_path(LayoutWindow *lw, gint index) -{ - if (!layout_valid(&lw)) return NULL; - - if (lw->vf) return vf_index_get_path(lw->vf, index); - - return NULL; -} - FileData *layout_list_get_fd(LayoutWindow *lw, gint index) { if (!layout_valid(&lw)) return NULL; diff -r 026f8f97361c -r 6e9413e92be5 src/layout.h --- a/src/layout.h Sun May 11 13:17:38 2008 +0000 +++ b/src/layout.h Sun May 11 20:38:21 2008 +0000 @@ -39,7 +39,6 @@ GList *layout_list(LayoutWindow *lw); gint layout_list_count(LayoutWindow *lw, gint64 *bytes); -const gchar *layout_list_get_path(LayoutWindow *lw, gint index); FileData *layout_list_get_fd(LayoutWindow *lw, gint index); gint layout_list_get_index(LayoutWindow *lw, const gchar *path); void layout_list_sync_fd(LayoutWindow *lw, FileData *fd); diff -r 026f8f97361c -r 6e9413e92be5 src/view_file.c --- a/src/view_file.c Sun May 11 13:17:38 2008 +0000 +++ b/src/view_file.c Sun May 11 20:38:21 2008 +0000 @@ -51,19 +51,6 @@ return fd; } -gchar *vf_index_get_path(ViewFile *vf, gint row) -{ - gchar *path = NULL; - - switch(vf->type) - { - case FILEVIEW_LIST: path = vflist_index_get_path(vf, row); break; - case FILEVIEW_ICON: path = vficon_index_get_path(vf, row); break; - } - - return path; -} - gint vf_index_by_path(ViewFile *vf, const gchar *path) { gint index = -1; diff -r 026f8f97361c -r 6e9413e92be5 src/view_file.h --- a/src/view_file.h Sun May 11 13:17:38 2008 +0000 +++ b/src/view_file.h Sun May 11 20:38:21 2008 +0000 @@ -29,7 +29,6 @@ void vf_sort_set(ViewFile *vf, SortType type, gint ascend); FileData *vf_index_get_data(ViewFile *vf, gint row); -gchar *vf_index_get_path(ViewFile *vf, gint row); gint vf_index_by_path(ViewFile *vf, const gchar *path); gint vf_index_by_fd(ViewFile *vf, FileData *in_fd); gint vf_count(ViewFile *vf, gint64 *bytes); diff -r 026f8f97361c -r 6e9413e92be5 src/view_file_icon.c --- a/src/view_file_icon.c Sun May 11 13:17:38 2008 +0000 +++ b/src/view_file_icon.c Sun May 11 20:38:21 2008 +0000 @@ -2060,17 +2060,6 @@ return id ? id->fd : NULL; } -gchar *vficon_index_get_path(ViewFile *vf, gint row) -{ - FileData *fd; - IconData *id; - - id = g_list_nth_data(vf->list, row); - fd = id ? id->fd : NULL; - - return (fd ? fd->path : NULL); -} - gint vficon_index_by_path(ViewFile *vf, const gchar *path) { gint p = 0; diff -r 026f8f97361c -r 6e9413e92be5 src/view_file_icon.h --- a/src/view_file_icon.h Sun May 11 13:17:38 2008 +0000 +++ b/src/view_file_icon.h Sun May 11 20:38:21 2008 +0000 @@ -28,7 +28,6 @@ void vficon_sort_set(ViewFile *vf, SortType type, gint ascend); FileData *vficon_index_get_data(ViewFile *vf, gint row); -gchar *vficon_index_get_path(ViewFile *vf, gint row); gint vficon_index_by_path(ViewFile *vf, const gchar *path); gint vficon_index_by_fd(ViewFile *vf, FileData *in_fd); gint vficon_count(ViewFile *vf, gint64 *bytes); diff -r 026f8f97361c -r 6e9413e92be5 src/view_file_list.c --- a/src/view_file_list.c Sun May 11 13:17:38 2008 +0000 +++ b/src/view_file_list.c Sun May 11 20:38:21 2008 +0000 @@ -1289,15 +1289,6 @@ return g_list_nth_data(vf->list, row); } -gchar *vflist_index_get_path(ViewFile *vf, gint row) -{ - FileData *fd; - - fd = g_list_nth_data(vf->list, row); - - return (fd ? fd->path : NULL); -} - static gint vflist_row_by_path(ViewFile *vf, const gchar *path, FileData **fd) { gint p = 0; diff -r 026f8f97361c -r 6e9413e92be5 src/view_file_list.h --- a/src/view_file_list.h Sun May 11 13:17:38 2008 +0000 +++ b/src/view_file_list.h Sun May 11 20:38:21 2008 +0000 @@ -33,7 +33,6 @@ void vflist_sort_set(ViewFile *vf, SortType type, gint ascend); FileData *vflist_index_get_data(ViewFile *vf, gint row); -gchar *vflist_index_get_path(ViewFile *vf, gint row); gint vflist_index_by_path(ViewFile *vf, const gchar *path); gint vflist_count(ViewFile *vf, gint64 *bytes); GList *vflist_get_list(ViewFile *vf);