diff src/ui_fileops.c @ 545:e421326e8b43

Remove unused checksum_simple() function.
author zas_
date Fri, 02 May 2008 20:56:59 +0000
parents 8de7cdde59dd
children 9dc0513837b5
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;