Mercurial > geeqie.yaz
changeset 545:e421326e8b43
Remove unused checksum_simple() function.
author | zas_ |
---|---|
date | Fri, 02 May 2008 20:56:59 +0000 |
parents | 8de7cdde59dd |
children | f852eb277913 |
files | src/ui_fileops.c src/ui_fileops.h |
diffstat | 2 files changed, 0 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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);