changeset 632:6e9413e92be5

Drop unused layout_list_get_path() and vf*_index_get_path().
author zas_
date Sun, 11 May 2008 20:38:21 +0000
parents 026f8f97361c
children fe700864cb5a
files src/layout.c src/layout.h src/view_file.c 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 8 files changed, 0 insertions(+), 46 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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);
--- 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;
--- 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);
--- 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;
--- 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);
--- 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;
--- 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);