[gthumb] Removed more unused functions



commit 1c727c96252613c661b9f16e5a3335623606fc3d
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Tue May 12 09:14:11 2009 -0400

    Removed more unused functions
---
 libgthumb/file-utils.c |   37 -------------------------------------
 libgthumb/file-utils.h |    8 --------
 2 files changed, 0 insertions(+), 45 deletions(-)

diff --git a/libgthumb/file-utils.c b/libgthumb/file-utils.c
index 376c08c..3a5742a 100644
--- a/libgthumb/file-utils.c
+++ b/libgthumb/file-utils.c
@@ -289,17 +289,6 @@ path_list_free (GList *list)
 }
 
 
-void
-path_list_print (GList *list)
-{
-	GList *scan;
-	for (scan = list; scan; scan = scan->next) {
-		char *path = scan->data;
-		g_print ("--> %s\n", path);
-	}
-}
-
-
 GList *
 path_list_find_path (GList *list, const char *path)
 {
@@ -574,19 +563,6 @@ gboolean mime_type_is_video (const char *mime_type)
 }
 
 
-gboolean file_is_video (const gchar *name,
-			gboolean     fast_file_type)
-{
-	const char *mime_type = NULL;
-
-	mime_type = get_file_mime_type (name, fast_file_type);
-	if (mime_type == NULL)
-		return FALSE;
-
-	return mime_type_is_video (mime_type);
-}
-
-
 gboolean mime_type_is_audio (const char *mime_type)
 {
 	g_return_val_if_fail (mime_type != NULL, FALSE);
@@ -595,19 +571,6 @@ gboolean mime_type_is_audio (const char *mime_type)
 }
 
 
-gboolean file_is_audio (const gchar *name,
-			gboolean     fast_file_type)
-{
-	const char *mime_type = NULL;
-
-	mime_type = get_file_mime_type (name, fast_file_type);
-	if (mime_type == NULL)
-		return FALSE;
-
-	return mime_type_is_audio (mime_type);
-}
-
-
 gboolean file_is_image_video_or_audio (const gchar *name,
 				 gboolean     fast_file_type)
 {
diff --git a/libgthumb/file-utils.h b/libgthumb/file-utils.h
index 6a24955..dec0f14 100644
--- a/libgthumb/file-utils.h
+++ b/libgthumb/file-utils.h
@@ -81,7 +81,6 @@ gboolean            path_list_new                 (const char         *path,
 						   GList             **dirs);
 GList *             path_list_dup                 (GList              *path_list);
 void                path_list_free                (GList              *list);
-void                path_list_print               (GList              *list);
 GList *             path_list_find_path           (GList              *list,
 						   const char         *path);
 
@@ -115,10 +114,6 @@ gboolean            mime_type_is_video            (const char       *mime_type);
 gboolean            mime_type_is_audio            (const char       *mime_type);
 gboolean	    file_is_image 		  (const gchar      *name,
 						   gboolean          fast_file_type);
-gboolean            file_is_video                 (const gchar      *name,
-                                                   gboolean          fast_file_type);
-gboolean            file_is_audio                 (const gchar      *name,
-                                                   gboolean          fast_file_type);
 gboolean            file_is_image_video_or_audio  (const gchar      *name,
                                                    gboolean          fast_file_type);
 gboolean            file_is_hidden                (const char       *name);
@@ -130,9 +125,6 @@ gboolean            file_unlink                   (const char       *path);
 void		    delete_thumbnail	          (const char       *path);
 gboolean            mime_type_is                  (const char       *mime_type,
 	      				 	   const char       *value);
-gboolean            image_is_type                 (const char       *name,
-	       					   const char       *type,
-	       					   gboolean          fast_file_type);
 gboolean            image_is_jpeg                 (const char       *name);
 gboolean            mime_type_is_raw              (const char       *name);
 gboolean            path_exists                   (const char       *s);



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