[gthumb] local_dir_remove_recursive is exactly the same as dir_remove_recursive
- From: Michael J. Chudobiak <mjc src gnome org>
- To: svn-commits-list gnome org
- Subject: [gthumb] local_dir_remove_recursive is exactly the same as dir_remove_recursive
- Date: Tue, 12 May 2009 09:21:25 -0400 (EDT)
commit 1acd9e2cb45bfd174a12dd5f6e767ed5d318a975
Author: Michael J. Chudobiak <mjc avtechpulse com>
Date: Tue May 12 09:20:49 2009 -0400
local_dir_remove_recursive is exactly the same as dir_remove_recursive
---
libgthumb/file-utils.c | 7 -------
libgthumb/file-utils.h | 1 -
libgthumb/pixbuf-utils.c | 2 +-
src/dlg-photo-importer.c | 4 ++--
src/gth-window-actions-callbacks.c | 6 +++---
src/rotation-utils.c | 2 +-
6 files changed, 7 insertions(+), 15 deletions(-)
diff --git a/libgthumb/file-utils.c b/libgthumb/file-utils.c
index e373440..ac9ad9c 100644
--- a/libgthumb/file-utils.c
+++ b/libgthumb/file-utils.c
@@ -363,13 +363,6 @@ dir_remove_recursive (const char *path)
gboolean
-local_dir_remove_recursive (const char *path)
-{
- return dir_remove_recursive (path);
-}
-
-
-gboolean
ensure_dir_exists (const char *path)
{
GFile *gfile;
diff --git a/libgthumb/file-utils.h b/libgthumb/file-utils.h
index e5ed867..544e989 100644
--- a/libgthumb/file-utils.h
+++ b/libgthumb/file-utils.h
@@ -89,7 +89,6 @@ GList * path_list_find_path (GList *list,
gboolean dir_make (const char *uri);
gboolean dir_remove (const char *uri);
gboolean dir_remove_recursive (const char *path);
-gboolean local_dir_remove_recursive (const char *path);
gboolean ensure_dir_exists (const char *path);
GList * dir_list_filter_and_sort (GList *dir_list,
diff --git a/libgthumb/pixbuf-utils.c b/libgthumb/pixbuf-utils.c
index 1a9ae89..5a4b553 100644
--- a/libgthumb/pixbuf-utils.c
+++ b/libgthumb/pixbuf-utils.c
@@ -1262,7 +1262,7 @@ _gdk_pixbuf_savev (GdkPixbuf *pixbuf,
if (is_overwrite) {
update_and_save_metadatum (temp_backup, local_file, "Exif.Image.Orientation", "1");
file_unlink (temp_backup);
- local_dir_remove_recursive (temp_dir);
+ dir_remove_recursive (temp_dir);
} else {
update_and_save_metadatum (original_local_file, local_file, "Exif.Image.Orientation", "1");
}
diff --git a/src/dlg-photo-importer.c b/src/dlg-photo-importer.c
index a86a9bd..076c1a8 100644
--- a/src/dlg-photo-importer.c
+++ b/src/dlg-photo-importer.c
@@ -830,7 +830,7 @@ load_images_preview__step (AsyncOperationData *aodata,
file_unlink (tmp_filename);
}
- local_dir_remove_recursive (tmp_dir);
+ dir_remove_recursive (tmp_dir);
g_free (tmp_filename);
g_free (tmp_dir);
@@ -1391,7 +1391,7 @@ save_image (DialogData *data,
/* Clean up temp file and dir */
if (temp_dir != NULL) {
- local_dir_remove_recursive (temp_dir);
+ dir_remove_recursive (temp_dir);
g_free (temp_dir);
}
diff --git a/src/gth-window-actions-callbacks.c b/src/gth-window-actions-callbacks.c
index e59fe9a..5814f14 100644
--- a/src/gth-window-actions-callbacks.c
+++ b/src/gth-window-actions-callbacks.c
@@ -172,12 +172,12 @@ print_done_cb (gpointer data)
tmp_comment = comments_get_comment_filename (tmp_filename, TRUE);
tmp_dir = remove_level_from_path (tmp_comment);
- local_dir_remove_recursive (tmp_dir);
+ dir_remove_recursive (tmp_dir);
g_free (tmp_comment);
g_free (tmp_dir);
tmp_dir = remove_level_from_path (tmp_filename);
- local_dir_remove_recursive (tmp_dir);
+ dir_remove_recursive (tmp_dir);
g_free (tmp_dir);
g_free (tmp_filename);
@@ -228,7 +228,7 @@ gth_window_activate_action_file_print (GtkAction *action,
NULL))
{
_gtk_error_dialog_from_gerror_run (GTK_WINDOW (window), &error);
- local_dir_remove_recursive (tmp_dir);
+ dir_remove_recursive (tmp_dir);
g_object_unref (pixbuf);
g_free (tmp_filename);
diff --git a/src/rotation-utils.c b/src/rotation-utils.c
index 442f5cd..9c50246 100644
--- a/src/rotation-utils.c
+++ b/src/rotation-utils.c
@@ -223,7 +223,7 @@ apply_transformation_jpeg (FileData *file,
apply_transformation_jpeg__free_and_close:
- local_dir_remove_recursive (tmp_dir);
+ dir_remove_recursive (tmp_dir);
g_free (tmp_output_file);
g_free (tmp_dir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]