Remove unused checksum_simple() function.
authorLaurent Monin <geeqie@norz.org>
Fri, 2 May 2008 20:56:59 +0000 (20:56 +0000)
committerLaurent Monin <geeqie@norz.org>
Fri, 2 May 2008 20:56:59 +0000 (20:56 +0000)
src/ui_fileops.c
src/ui_fileops.h

index f6b8ef9..8dd43e8 100644 (file)
@@ -623,28 +623,6 @@ GList *path_list_copy(GList *list)
        return g_list_reverse(new_list);
 }
 
-long checksum_simple(const gchar *path)
-{
-       gchar *path8;
-       FILE *f;
-       long sum = 0;
-       gint c;
-
-       path8 = path_from_utf8(path);
-       f = fopen(path8, "r");
-       g_free(path8);
-       if (!f) return -1;
-
-       while ((c = fgetc(f)) != EOF)
-               {
-               sum += c;
-               }
-
-       fclose(f);
-
-       return sum;
-}
-
 gchar *unique_filename(const gchar *path, const gchar *ext, const gchar *divider, gint pad)
 {
        gchar *unique;
index a6b4309..f8acd25 100644 (file)
@@ -65,8 +65,6 @@ void string_list_free(GList *list);
 GList *string_list_copy(GList *list);
 #define path_list_copy string_list_copy
 
-long checksum_simple(const gchar *path);
-
 
 gchar *unique_filename(const gchar *path, const gchar *ext, const gchar *divider, gint pad);
 gchar *unique_filename_simple(const gchar *path);