[gthumb] Removed some unused functions



commit 8873e29d2eece1e7f508b758af0439d5ce66c8ea
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date:   Wed Apr 22 14:12:47 2009 -0400

    Removed some unused functions
---
 libgthumb/file-utils.c |   50 ------------------------------------------------
 libgthumb/file-utils.h |    4 ---
 2 files changed, 0 insertions(+), 54 deletions(-)

diff --git a/libgthumb/file-utils.c b/libgthumb/file-utils.c
index e4ba72e..f9d5a6f 100644
--- a/libgthumb/file-utils.c
+++ b/libgthumb/file-utils.c
@@ -333,30 +333,6 @@ path_list_find_path (GList *list, const char *path)
 
 
 gboolean
-dir_is_empty (const gchar *path)
-{
-	DIR *dp;
-	int n;
-
-	if (strcmp (path, "/") == 0)
-		return FALSE;
-
-	dp = opendir (path);
-	n = 0;
-	while (readdir (dp) != NULL) {
-		n++;
-		if (n > 2) {
-			closedir (dp);
-			return FALSE;
-		}
-	}
-	closedir (dp);
-
-	return TRUE;
-}
-
-
-gboolean
 dir_make (const gchar *path)
 {
         GFile    *gfile;
@@ -2445,32 +2421,6 @@ _gnome_vfs_read_line (GnomeVFSHandle   *handle,
 }
 
 
-GnomeVFSResult
-_gnome_vfs_write_line (GnomeVFSHandle   *handle,
-		       const char       *format,
-		       ...)
-{
-	GnomeVFSResult  result;
-	va_list         args;
-	char           *str;
-
-	g_return_val_if_fail (format != NULL, GNOME_VFS_ERROR_INTERNAL);
-
-	va_start (args, format);
-	str = g_strdup_vprintf (format, args);
-	va_end (args);
-
-	result = gnome_vfs_write (handle, str, strlen(str), NULL);
-
-	g_free (str);
-
-	if (result != GNOME_VFS_OK)
-		return result;
-
-	return gnome_vfs_write (handle, "\n", 1, NULL);
-}
-
-
 guint64
 get_destination_free_space (const char *path)
 {
diff --git a/libgthumb/file-utils.h b/libgthumb/file-utils.h
index eb8e23c..4265e0d 100644
--- a/libgthumb/file-utils.h
+++ b/libgthumb/file-utils.h
@@ -91,7 +91,6 @@ GList *             path_list_find_path           (GList              *list,
 
 /* Directory utils */
 
-gboolean            dir_is_empty                  (const char       *s);
 gboolean            dir_make                      (const char       *uri);
 gboolean            dir_remove                    (const char       *uri);
 gboolean            dir_remove_recursive          (const char       *path);
@@ -239,9 +238,6 @@ GnomeVFSResult      _gnome_vfs_read_line          (GnomeVFSHandle   *handle,
 						   gpointer          buffer,
 						   GnomeVFSFileSize  buffer_size,
 						   GnomeVFSFileSize *bytes_read);
-GnomeVFSResult      _gnome_vfs_write_line         (GnomeVFSHandle   *handle,
-						   const char       *format,
-						   ...);
 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]