[gthumb] Purged the now-unused _gnome_vfs_read_line function



commit 910b289cda1a68c78c8d808fbb56b473d1ef5712
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Wed Apr 22 15:58:42 2009 -0400

    Purged the now-unused _gnome_vfs_read_line function
---
 libgthumb/file-utils.c |   38 --------------------------------------
 libgthumb/file-utils.h |    4 ----
 2 files changed, 0 insertions(+), 42 deletions(-)

diff --git a/libgthumb/file-utils.c b/libgthumb/file-utils.c
index 74d5691..7f1ddff 100644
--- a/libgthumb/file-utils.c
+++ b/libgthumb/file-utils.c
@@ -2381,44 +2381,6 @@ copy_file_async (const char   *source_uri,
 
 /* -- */
 
-GnomeVFSResult
-_gnome_vfs_read_line (GnomeVFSHandle   *handle,
-		      gpointer          buffer,
-		      GnomeVFSFileSize  buffer_size,
-		      GnomeVFSFileSize *bytes_read)
-{
-	GnomeVFSResult    result = GNOME_VFS_OK;
-	GnomeVFSFileSize  offset = 0;
-	GnomeVFSFileSize  file_offset;
-	GnomeVFSFileSize  priv_bytes_read = 0;
-	char             *eol = NULL;
-
-	result = gnome_vfs_tell (handle, &file_offset);
-
-	((char*)buffer)[0] = '\0';
-
-	while ((result == GNOME_VFS_OK) && (eol == NULL)) {
-		if (offset + CHUNK_SIZE >= buffer_size)
-			return GNOME_VFS_ERROR_INTERNAL;
-
-		result = gnome_vfs_read (handle, buffer + offset, CHUNK_SIZE, &priv_bytes_read);
-		if (result != GNOME_VFS_OK)
-			break;
-		eol = strchr ((char*)buffer + offset, '\n');
-		if (eol != NULL) {
-			GnomeVFSFileSize line_size = eol - (char*)buffer;
-			*eol = '\0';
-			gnome_vfs_seek (handle, GNOME_VFS_SEEK_START, file_offset + line_size + 1);
-			if (bytes_read != NULL)
-				*bytes_read = line_size;
-		}
-		else
-			offset += priv_bytes_read;
-	}
-
-	return result;
-}
-
 
 guint64
 get_destination_free_space (const char *path)
diff --git a/libgthumb/file-utils.h b/libgthumb/file-utils.h
index 4265e0d..db185ea 100644
--- a/libgthumb/file-utils.h
+++ b/libgthumb/file-utils.h
@@ -234,10 +234,6 @@ CopyData *          copy_file_async               (const char       *source_uri,
 		 				   const char       *target_uri,
 		 				   CopyDoneFunc      done_func,
 		 				   gpointer          done_data);
-GnomeVFSResult      _gnome_vfs_read_line          (GnomeVFSHandle   *handle,
-						   gpointer          buffer,
-						   GnomeVFSFileSize  buffer_size,
-						   GnomeVFSFileSize *bytes_read);
 guint64             get_destination_free_space    (const char       *path);
 const char*         get_file_mime_type            (const char       *path,
 						   gboolean          fast_file_type);



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