# HG changeset patch # User zas_ # Date 1209761819 0 # Node ID e421326e8b43cdca073f9531220e229d57fd6e0f # Parent 8de7cdde59dd56211db6681a377571655328dff4 Remove unused checksum_simple() function. diff -r 8de7cdde59dd -r e421326e8b43 src/ui_fileops.c --- a/src/ui_fileops.c Fri May 02 20:40:47 2008 +0000 +++ b/src/ui_fileops.c Fri May 02 20:56:59 2008 +0000 @@ -623,28 +623,6 @@ 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; diff -r 8de7cdde59dd -r e421326e8b43 src/ui_fileops.h --- a/src/ui_fileops.h Fri May 02 20:40:47 2008 +0000 +++ b/src/ui_fileops.h Fri May 02 20:56:59 2008 +0000 @@ -65,8 +65,6 @@ 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);