[libgda] control-center: Remove some unused variables.



commit 53029b955e73d77454a7e17856766fab028aba80
Author: Murray Cumming <murrayc murrayc com>
Date:   Sun Apr 16 21:02:40 2017 +0200

    control-center: Remove some unused variables.

 control-center/dsn-config.c       |    2 --
 control-center/gdaui-dsn-editor.c |    1 -
 control-center/main.c             |    3 +--
 control-center/provider-config.c  |    4 +---
 4 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/control-center/dsn-config.c b/control-center/dsn-config.c
index 76b7b27..2bdb5cb 100644
--- a/control-center/dsn-config.c
+++ b/control-center/dsn-config.c
@@ -98,7 +98,6 @@ list_selection_changed_cb (GdauiRawGrid *grid, gpointer user_data)
        GArray *selection;
        gchar *str;
        const GValue *cvalue;
-       GApplication *app;
        GtkWidget *win = gtk_widget_get_toplevel (GTK_WIDGET (grid));
        if (gtk_widget_is_toplevel (win)) {
                g_simple_action_set_enabled (G_SIMPLE_ACTION (g_action_map_lookup_action (G_ACTION_MAP (win),
@@ -166,7 +165,6 @@ dsn_config_new (void)
 {
        DsnConfigPrivate *priv;
        GtkWidget *dsn;
-       GtkWidget *image;
        GtkWidget *label;
        GtkWidget *sw;
        gchar *title;
diff --git a/control-center/gdaui-dsn-editor.c b/control-center/gdaui-dsn-editor.c
index 0e7785a..db538df 100644
--- a/control-center/gdaui-dsn-editor.c
+++ b/control-center/gdaui-dsn-editor.c
@@ -155,7 +155,6 @@ gdaui_dsn_editor_init (GdauiDsnEditor *config, G_GNUC_UNUSED GdauiDsnEditorClass
 {
        GtkWidget *grid;
        GtkWidget *label;
-       GtkWidget *exp;
        gchar *str;
 
        g_return_if_fail (GDAUI_IS_DSN_EDITOR (config));
diff --git a/control-center/main.c b/control-center/main.c
index db99f99..7db1c77 100644
--- a/control-center/main.c
+++ b/control-center/main.c
@@ -75,8 +75,7 @@ static void
 file_delete_cb (G_GNUC_UNUSED GSimpleAction *action, GVariant *parameter, gpointer user_data)
 {
        GtkWidget *app_window = GTK_WIDGET (user_data);
-       GtkWidget *stack, *dsn, *current_widget;
-       gint current;
+       GtkWidget *stack, *dsn;
 
        dsn = g_object_get_data (G_OBJECT (app_window), DSN_PAGE);
        stack = g_object_get_data (G_OBJECT (app_window), STACK);
diff --git a/control-center/provider-config.c b/control-center/provider-config.c
index 29f7662..24876d0 100644
--- a/control-center/provider-config.c
+++ b/control-center/provider-config.c
@@ -157,9 +157,7 @@ provider_config_new (void)
 {
        ProviderConfigPrivate *priv;
        GtkWidget *provider;
-       GtkWidget *box, *paned;
-       GtkWidget *image;
-       GtkWidget *label;
+       GtkWidget *paned;
        GtkWidget *sw;
        gchar *title;
        GdaDataModel *model;


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