[gthumb] Remove unused cache functions



commit a088ac7b3ec282320e5ad52fa70914c387d4a9ac
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Tue May 12 08:35:12 2009 -0400

    Remove unused cache functions
---
 libgthumb/file-utils.c |   37 -------------------------------------
 libgthumb/file-utils.h |    2 --
 2 files changed, 0 insertions(+), 39 deletions(-)

diff --git a/libgthumb/file-utils.c b/libgthumb/file-utils.c
index b1aeca3..fecde7a 100644
--- a/libgthumb/file-utils.c
+++ b/libgthumb/file-utils.c
@@ -2459,43 +2459,6 @@ get_cache_full_path (const char *filename,
 }
 
 
-char *
-get_cache_filename_from_uri (const char *uri)
-{
-	char *name;
-	char *path;
-	char *ext;
-	
-	if (is_local_file (uri))
-		return get_local_path_from_uri (uri);
-	
-	name = gnome_thumbnail_md5 (uri);
-	if (name == NULL)
-		return NULL;
-
-	ext = get_filename_extension (uri);
-	path = get_cache_full_path (name, ext);
-	g_free (name);
-	g_free (ext);
-	
-	return path;	
-}
-
-
-char *
-get_cache_uri_from_uri (const char *uri)
-{
-	char *filename;
-	char *cache_uri;
-	
-	filename = get_cache_filename_from_uri (uri);
-	cache_uri = get_uri_from_local_path (filename);
-	g_free (filename);
-	
-	return cache_uri;
-}
-
-
 #define MAX_CACHE_SIZE (256 * 1024 * 1024)
 static GnomeVFSFileSize  cache_used_space = 0;
 static GList            *cache_files = NULL;
diff --git a/libgthumb/file-utils.h b/libgthumb/file-utils.h
index bc7bd14..c516b63 100644
--- a/libgthumb/file-utils.h
+++ b/libgthumb/file-utils.h
@@ -236,8 +236,6 @@ const char *        get_mime_type_from_ext        (const char       *ext);
 gboolean            is_mime_type_writable         (const char       *mime_type);
 gboolean            can_read_write_execute        (const char       *path);
 gboolean	    is_local_file                 (const char       *filename);
-char *              get_cache_filename_from_uri   (const char       *uri);
-char *              get_cache_uri_from_uri        (const char       *uri);
 void                free_cache                    (void);
 void                check_cache_free_space        (void);
 GHashTable *        read_dot_hidden_file          (const char       *uri);



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