[gimp] app: remove some more -Wunused-but-set-variable



commit 909e7833a39c5ead18c732039a842dcec29f5c84
Author: Michael Natterer <mitch gimp org>
Date:   Mon May 2 13:53:58 2011 +0200

    app: remove some more -Wunused-but-set-variable

 app/tools/gimprectangleoptions.c |    5 +----
 app/widgets/gimptemplateeditor.c |    3 ---
 2 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/app/tools/gimprectangleoptions.c b/app/tools/gimprectangleoptions.c
index 21f72a2..8906cfc 100644
--- a/app/tools/gimprectangleoptions.c
+++ b/app/tools/gimprectangleoptions.c
@@ -1081,10 +1081,7 @@ gimp_rectangle_options_setup_ratio_completion (GimpRectangleOptions *rectangle_o
                                                GtkWidget            *entry,
                                                GtkListStore         *history)
 {
-  GimpRectangleOptionsPrivate *private;
-  GtkEntryCompletion          *completion;
-
-  private = GIMP_RECTANGLE_OPTIONS_GET_PRIVATE (rectangle_options);
+  GtkEntryCompletion *completion;
 
   completion = g_object_new (GTK_TYPE_ENTRY_COMPLETION,
                              "model", history,
diff --git a/app/widgets/gimptemplateeditor.c b/app/widgets/gimptemplateeditor.c
index dcf0c11..c4f7b56 100644
--- a/app/widgets/gimptemplateeditor.c
+++ b/app/widgets/gimptemplateeditor.c
@@ -498,7 +498,6 @@ gimp_template_editor_new (GimpTemplate *template,
       GtkWidget   *table;
       GtkWidget   *entry;
       GtkWidget   *icon_picker;
-      const gchar *stock_id;
 
       table = gtk_table_new (2, 2, FALSE);
       gtk_table_set_col_spacings (GTK_TABLE (table), 6);
@@ -513,8 +512,6 @@ gimp_template_editor_new (GimpTemplate *template,
                                  _("_Name:"), 1.0, 0.5,
                                  entry, 1, FALSE);
 
-      stock_id = gimp_viewable_get_stock_id (GIMP_VIEWABLE (private->template));
-
       icon_picker = gimp_prop_icon_picker_new (G_OBJECT (private->template),
                                                "stock-id",
                                                gimp);



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