[gimp/soc-2009-dynamics] Get rid of local unused variable "config"



commit 824be894a120f7791ac980d35fedb1582717757b
Author: Michael Natterer <mitch gimp org>
Date:   Mon Oct 12 14:46:27 2009 +0200

    Get rid of local unused variable "config"

 app/widgets/gimpdynamicseditor.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/app/widgets/gimpdynamicseditor.c b/app/widgets/gimpdynamicseditor.c
index b87a774..64f8962 100644
--- a/app/widgets/gimpdynamicseditor.c
+++ b/app/widgets/gimpdynamicseditor.c
@@ -94,7 +94,6 @@ gimp_dynamics_editor_init (GimpDynamicsEditor *editor)
 {
   GimpDataEditor *data_editor = GIMP_DATA_EDITOR (editor);
   GimpDynamics   *dynamics;
-  GObject        *config;
   GtkWidget      *vbox;
   GtkWidget      *table;
   GtkWidget      *inner_frame;
@@ -103,16 +102,12 @@ gimp_dynamics_editor_init (GimpDynamicsEditor *editor)
   gint            n_inputs = G_N_ELEMENTS (input_labels);
   gint            i;
 
-  editor->dynamics_model = g_object_new (GIMP_TYPE_DYNAMICS, NULL);
+  dynamics = editor->dynamics_model = g_object_new (GIMP_TYPE_DYNAMICS, NULL);
 
-  g_signal_connect (editor->dynamics_model, "notify",
+  g_signal_connect (dynamics, "notify",
                     G_CALLBACK (gimp_dynamics_editor_notify_model),
                     editor);
 
-  dynamics = editor->dynamics_model;
-
-  config = G_OBJECT (dynamics);
-
   vbox = gtk_vbox_new (FALSE, 6);
   gtk_box_pack_start (GTK_BOX (data_editor), vbox, TRUE, TRUE, 0);
   gtk_widget_show (vbox);



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