gthumb r2472 - in trunk: . libgthumb



Author: mjc
Date: Wed Dec 24 02:32:06 2008
New Revision: 2472
URL: http://svn.gnome.org/viewvc/gthumb?rev=2472&view=rev

Log:
2008-12-23  Michael J. Chudobiak  <mjc svn gnome org>

        * libgthumb/file-utils.c:
        * libgthumb/file-utils.h:
        Removed an unused function (checksum_simple).



Modified:
   trunk/ChangeLog
   trunk/libgthumb/file-utils.c
   trunk/libgthumb/file-utils.h

Modified: trunk/libgthumb/file-utils.c
==============================================================================
--- trunk/libgthumb/file-utils.c	(original)
+++ trunk/libgthumb/file-utils.c	Wed Dec 24 02:32:06 2008
@@ -1039,34 +1039,6 @@
 }
 
 
-long
-checksum_simple (const char *path)
-{
-	GnomeVFSHandle   *handle;
-	GnomeVFSResult    result;
-	char              buffer[1024];
-	GnomeVFSFileSize  bytes_read;
-	long              sum = 0;
-
-	result = gnome_vfs_open (&handle, path, GNOME_VFS_OPEN_READ);
-	if (result != GNOME_VFS_OK)
-		return -1;
-
-	while (gnome_vfs_read (handle,
-			       buffer,
-			       1024,
-			       &bytes_read) == GNOME_VFS_OK) {
-		int i;
-		for (i = 0; i < bytes_read; i++)
-			sum += buffer[i];
-	}
-
-	gnome_vfs_close (handle);
-
-	return sum;
-}
-
-
 /* URI/Path utils */
 
 

Modified: trunk/libgthumb/file-utils.h
==============================================================================
--- trunk/libgthumb/file-utils.h	(original)
+++ trunk/libgthumb/file-utils.h	Wed Dec 24 02:32:06 2008
@@ -154,7 +154,6 @@
 time_t              get_file_ctime                (const char       *s);
 void                set_file_mtime                (const char       *s,
 						   time_t            mtime);
-long                checksum_simple               (const char       *path);
 
 /* URI/Path utils */
 



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