[libgda] libgda-ui: Remove some unused variables.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] libgda-ui: Remove some unused variables.
- Date: Sun, 16 Apr 2017 19:07:05 +0000 (UTC)
commit f5ace3edc14559fe87d9abdc0a5b07464e775ccd
Author: Murray Cumming <murrayc murrayc com>
Date: Sun Apr 16 21:03:08 2017 +0200
libgda-ui: Remove some unused variables.
libgda-ui/data-entries/common-bin.c | 6 +-----
libgda-ui/data-entries/gdaui-entry-common-time.c | 3 +--
libgda-ui/data-entries/gdaui-entry-shell.c | 3 ---
libgda-ui/gdaui-init.c | 1 -
4 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/libgda-ui/data-entries/common-bin.c b/libgda-ui/data-entries/common-bin.c
index e9ab33e..3b4eb21 100644
--- a/libgda-ui/data-entries/common-bin.c
+++ b/libgda-ui/data-entries/common-bin.c
@@ -219,8 +219,7 @@ void
common_bin_create_menu (GtkWidget *relative_to, BinMenu *binmenu, GType entry_type,
BinCallback loaded_value_cb, gpointer loaded_value_cb_data)
{
- GtkWidget *vbox, *hbox, *bbox, *button, *label;
- gchar *str;
+ GtkWidget *bbox, *button;
binmenu->entry_type = entry_type;
binmenu->loaded_value_cb = loaded_value_cb;
@@ -543,9 +542,6 @@ adjust_ctype (BinMenu *binmenu)
void
common_bin_adjust (BinMenu *binmenu, gboolean editable, const GValue *value)
{
- gchar *size;
- GString *string;
-
if (!binmenu || !binmenu->popover)
return;
diff --git a/libgda-ui/data-entries/gdaui-entry-common-time.c
b/libgda-ui/data-entries/gdaui-entry-common-time.c
index 6a35ab7..26b6eac 100644
--- a/libgda-ui/data-entries/gdaui-entry-common-time.c
+++ b/libgda-ui/data-entries/gdaui-entry-common-time.c
@@ -854,7 +854,6 @@ entry_insert_func (G_GNUC_UNUSED GdauiFormattedEntry *fentry, gunichar insert_ch
else if (type == GDA_TYPE_TIME) {
/* set current time */
GValue *timvalue;
- GdauiEntryCommonTime *mgtim = GDAUI_ENTRY_COMMON_TIME (data);
timvalue = gda_value_new_time_from_timet (time (NULL));
real_set_value (GDAUI_ENTRY_WRAPPER (data), timvalue);
gda_value_free (timvalue);
@@ -863,7 +862,7 @@ entry_insert_func (G_GNUC_UNUSED GdauiFormattedEntry *fentry, gunichar insert_ch
/* set current date and time */
GValue *tsvalue;
//gchar *str;
- GdauiEntryCommonTime *mgtim = GDAUI_ENTRY_COMMON_TIME (data);
+ //GdauiEntryCommonTime *mgtim = GDAUI_ENTRY_COMMON_TIME (data);
//str = gdaui_formatted_entry_get_text (GDAUI_FORMATTED_ENTRY (mgtim->priv->entry));
tsvalue = gda_value_new_timestamp_from_timet (time (NULL));
real_set_value (GDAUI_ENTRY_WRAPPER (data), tsvalue);
diff --git a/libgda-ui/data-entries/gdaui-entry-shell.c b/libgda-ui/data-entries/gdaui-entry-shell.c
index 0282492..63b48eb 100644
--- a/libgda-ui/data-entries/gdaui-entry-shell.c
+++ b/libgda-ui/data-entries/gdaui-entry-shell.c
@@ -146,7 +146,6 @@ static void
gdaui_entry_shell_class_init (GdauiEntryShellClass * class)
{
GObjectClass *object_class = G_OBJECT_CLASS (class);
- GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
parent_class = g_type_class_peek_parent (class);
@@ -341,8 +340,6 @@ label_event_cb (GtkWidget *widget, GdkEvent *event, GdauiEntryShell *shell)
static void
gdaui_entry_shell_init (GdauiEntryShell *shell)
{
- GValue *gval;
-
gtk_orientable_set_orientation (GTK_ORIENTABLE (shell), GTK_ORIENTATION_HORIZONTAL);
/* Private structure */
diff --git a/libgda-ui/gdaui-init.c b/libgda-ui/gdaui-init.c
index b529de5..66206a0 100644
--- a/libgda-ui/gdaui-init.c
+++ b/libgda-ui/gdaui-init.c
@@ -336,7 +336,6 @@ init_plugins_hash (void)
{
GHashTable *hash;
GdauiPlugin *plugin;
- gchar *file;
hash = g_hash_table_new (g_str_hash, g_str_equal); /* key strings are not handled in the hash table */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]