[gthumb] Removed unused arguments in path_list_async_interrupt



commit 3ff91b528bf8f638265d4666787ed25a7fbed525
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Thu Apr 23 15:24:19 2009 -0400

    Removed unused arguments in path_list_async_interrupt
---
 libgthumb/file-utils.c |   11 +----------
 libgthumb/file-utils.h |    4 +---
 src/gth-dir-list.c     |    4 ++--
 3 files changed, 4 insertions(+), 15 deletions(-)

diff --git a/libgthumb/file-utils.c b/libgthumb/file-utils.c
index 31da7d3..6f3ad3e 100644
--- a/libgthumb/file-utils.c
+++ b/libgthumb/file-utils.c
@@ -85,8 +85,6 @@ path_list_data_new (void)
 	pli->dirs = NULL;
 	pli->done_func = NULL;
 	pli->done_data = NULL;
-	pli->interrupt_func = NULL;
-	pli->interrupt_data = NULL;
 	pli->interrupted = FALSE;
 	pli->hidden_files = NULL;
 
@@ -135,8 +133,6 @@ directory_load_cb (GnomeVFSAsyncHandle *handle,
 	if (pli->interrupted) {
 		gnome_vfs_async_cancel (handle);
 		pli->interrupted = FALSE;
-		if (pli->interrupt_func)
-			pli->interrupt_func (pli->interrupt_data);
 		path_list_data_free (pli);
 		return;
 	}
@@ -243,14 +239,9 @@ path_list_async_new (const char         *uri,
 
 
 void
-path_list_async_interrupt (PathListHandle   *handle,
-			   DoneFunc          f,
-			   gpointer          data)
+path_list_async_interrupt (PathListHandle *handle)
 {
 	handle->pli_data->interrupted = TRUE;
-	handle->pli_data->interrupt_func = f;
-	handle->pli_data->interrupt_data = data;
-
 	g_free (handle);
 }
 
diff --git a/libgthumb/file-utils.h b/libgthumb/file-utils.h
index 7c5b810..b1a41c6 100644
--- a/libgthumb/file-utils.h
+++ b/libgthumb/file-utils.h
@@ -75,9 +75,7 @@ PathListHandle *    path_list_async_new           (const char         *uri,
 		     				   gboolean            fast_file_type,
 						   PathListDoneFunc    done_func,
 						   gpointer            done_data);
-void                path_list_async_interrupt     (PathListHandle     *handle,
-						   DoneFunc            f,
-						   gpointer            data);
+void                path_list_async_interrupt     (PathListHandle     *handle);
 gboolean            path_list_new                 (const char         *path,
 						   GList             **files,
 						   GList             **dirs);
diff --git a/src/gth-dir-list.c b/src/gth-dir-list.c
index e69347f..2bb6431 100644
--- a/src/gth-dir-list.c
+++ b/src/gth-dir-list.c
@@ -591,7 +591,7 @@ gth_dir_list_change_to (GthDirList *dir_list,
 	dir_list->try_path = remove_ending_separator (path);
 
 	if (dir_list->dir_load_handle != NULL)
-		path_list_async_interrupt (dir_list->dir_load_handle, NULL, NULL);
+		path_list_async_interrupt (dir_list->dir_load_handle);
 
 	dir_list->dir_load_handle = path_list_async_new (
 		dir_list->try_path, 
@@ -609,7 +609,7 @@ gth_dir_list_stop (GthDirList *dir_list)
 	g_return_if_fail (dir_list != NULL);
 
 	if (dir_list->dir_load_handle != NULL) {
-		path_list_async_interrupt (dir_list->dir_load_handle, NULL, NULL);
+		path_list_async_interrupt (dir_list->dir_load_handle);
 		dir_list->dir_load_handle = NULL;
 	}
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]