[gimp/metadata-browser] app (file-save-dialog): Remove dead code and variables
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app (file-save-dialog): Remove dead code and variables
- Date: Fri, 2 Dec 2011 02:09:10 +0000 (UTC)
commit 3f0392bafef35c1feab031e659ddf36ce31d81ad
Author: Mukund Sivaraman <muks banu com>
Date: Thu Oct 6 09:01:51 2011 +0530
app (file-save-dialog): Remove dead code and variables
app/dialogs/file-save-dialog.c | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/app/dialogs/file-save-dialog.c b/app/dialogs/file-save-dialog.c
index 6c227bf..ff34ada 100644
--- a/app/dialogs/file-save-dialog.c
+++ b/app/dialogs/file-save-dialog.c
@@ -314,23 +314,18 @@ file_save_dialog_check_uri (GtkWidget *save_dialog,
if (ext)
{
- gchar *ext_uri = g_strconcat (uri, ".", ext, NULL);
- gchar *ext_basename = g_strconcat (basename, ".", ext, NULL);
+ gchar *ext_basename;
gchar *utf8;
GIMP_LOG (SAVE_DIALOG, "appending .%s to basename", ext);
+ ext_basename = g_strconcat (basename, ".", ext, NULL);
+
g_free (uri);
g_free (basename);
- uri = ext_uri;
basename = ext_basename;
- uri_proc = file_procedure_find (file_save_dialog_get_procs (dialog, gimp),
- uri, NULL);
- basename_proc = file_procedure_find (file_save_dialog_get_procs (dialog, gimp),
- basename, NULL);
-
utf8 = g_filename_to_utf8 (basename, -1, NULL, NULL, NULL);
gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (save_dialog),
utf8);
@@ -345,7 +340,6 @@ file_save_dialog_check_uri (GtkWidget *save_dialog,
*/
gtk_dialog_response (GTK_DIALOG (save_dialog), GTK_RESPONSE_OK);
- g_free (uri);
g_free (basename);
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]