Project

General

Profile

Remove-unused-variables-in-gui-gtk3.txt

git patch cleaning up unused variables, just change the extension from .txt to .patch. - jralls@ceridwen.us, 12/11/2018 07:12 PM

Download (19.6 KB)

 
1
From fb7c5232dfb76833166628a494217b96c869e345 Mon Sep 17 00:00:00 2001
2
From: John Ralls <jralls@ceridwen.us>
3
Date: Fri, 7 Dec 2018 13:34:32 -0800
4
Subject: [PATCH] Remove unused variables in gui/gtk3.
5

    
6
Found using clang static analyzer.
7
---
8
 gui/gtk3/gtk3_gui_dialog.c |  2 --
9
 gui/gtk3/w_checkbox.c      | 11 ++++-------
10
 gui/gtk3/w_combobox.c      |  9 ++++-----
11
 gui/gtk3/w_dialog.c        |  2 --
12
 gui/gtk3/w_gridlayout.c    |  4 ----
13
 gui/gtk3/w_groupbox.c      |  2 --
14
 gui/gtk3/w_hlayout.c       |  2 --
15
 gui/gtk3/w_hline.c         |  2 --
16
 gui/gtk3/w_hspacer.c       |  2 --
17
 gui/gtk3/w_label.c         |  2 --
18
 gui/gtk3/w_lineedit.c      | 18 ++++++++----------
19
 gui/gtk3/w_listbox.c       | 13 ++++---------
20
 gui/gtk3/w_progressbar.c   |  4 ----
21
 gui/gtk3/w_pushbutton.c    | 11 ++++-------
22
 gui/gtk3/w_radiobutton.c   | 10 ++++------
23
 gui/gtk3/w_scrollarea.c    |  2 --
24
 gui/gtk3/w_spinbox.c       | 13 ++++---------
25
 gui/gtk3/w_stack.c         |  2 --
26
 gui/gtk3/w_tabbook.c       |  2 --
27
 gui/gtk3/w_textbrowser.c   |  2 --
28
 gui/gtk3/w_textedit.c      |  5 +----
29
 gui/gtk3/w_vlayout.c       |  2 --
30
 gui/gtk3/w_vline.c         |  2 --
31
 gui/gtk3/w_vspacer.c       |  2 --
32
 24 files changed, 33 insertions(+), 93 deletions(-)
33

    
34
diff --git a/gui/gtk3/gtk3_gui_dialog.c b/gui/gtk3/gtk3_gui_dialog.c
35
index 177a3e1..3cac2ae 100644
36
--- a/gui/gtk3/gtk3_gui_dialog.c
37
+++ b/gui/gtk3/gtk3_gui_dialog.c
38
@@ -533,12 +533,10 @@ int Gtk3Gui_GetRawText(const char *text, GWEN_BUFFER *tbuf) {
39
 
40
   if (p && p2) {
41
     int startPos;
42
-    int endPos;
43
 
44
     p2+=7; /* skip "</html>" */
45
 
46
     startPos=(p-text);
47
-    endPos=(p2-text);
48
 
49
     /* append stuff before startPos */
50
     if (startPos)
51
diff --git a/gui/gtk3/w_checkbox.c b/gui/gtk3/w_checkbox.c
52
index ee61b1e..e824c3d 100644
53
--- a/gui/gtk3/w_checkbox.c
54
+++ b/gui/gtk3/w_checkbox.c
55
@@ -162,11 +162,8 @@ static void Gtk3Gui_WCheckBox_Toggled_handler(GtkButton *button, gpointer data)
56
 int Gtk3Gui_WCheckBox_Setup(GWEN_WIDGET *w) {
57
   GtkWidget *g;
58
   const char *s;
59
-  uint32_t flags;
60
   GWEN_WIDGET *wParent;
61
-  gulong toggled_handler_id;
62
 
63
-  flags=GWEN_Widget_GetFlags(w);
64
   wParent=GWEN_Widget_Tree_GetParent(w);
65
   s=GWEN_Widget_GetText(w, 0);
66
 
67
@@ -184,10 +181,10 @@ int Gtk3Gui_WCheckBox_Setup(GWEN_WIDGET *w) {
68
   GWEN_Widget_SetSetCharPropertyFn(w, Gtk3Gui_WCheckBox_SetCharProperty);
69
   GWEN_Widget_SetGetCharPropertyFn(w, Gtk3Gui_WCheckBox_GetCharProperty);
70
 
71
-  toggled_handler_id=g_signal_connect(g,
72
-                                      "toggled",
73
-                                      G_CALLBACK (Gtk3Gui_WCheckBox_Toggled_handler),
74
-                                      w);
75
+  g_signal_connect(g,
76
+                   "toggled",
77
+                   G_CALLBACK (Gtk3Gui_WCheckBox_Toggled_handler),
78
+                   w);
79
 
80
   if (wParent)
81
     GWEN_Widget_AddChildGuiWidget(wParent, w);
82
diff --git a/gui/gtk3/w_combobox.c b/gui/gtk3/w_combobox.c
83
index deb7525..f0b51a1 100644
84
--- a/gui/gtk3/w_combobox.c
85
+++ b/gui/gtk3/w_combobox.c
86
@@ -250,7 +250,6 @@ int Gtk3Gui_WComboBox_Setup(GWEN_WIDGET *w) {
87
   GtkListStore *store;
88
   uint32_t flags;
89
   GWEN_WIDGET *wParent;
90
-  gulong changed_handler_id;
91
 
92
   flags=GWEN_Widget_GetFlags(w);
93
   wParent=GWEN_Widget_Tree_GetParent(w);
94
@@ -283,10 +282,10 @@ int Gtk3Gui_WComboBox_Setup(GWEN_WIDGET *w) {
95
   GWEN_Widget_SetSetCharPropertyFn(w, Gtk3Gui_WComboBox_SetCharProperty);
96
   GWEN_Widget_SetGetCharPropertyFn(w, Gtk3Gui_WComboBox_GetCharProperty);
97
 
98
-  changed_handler_id=g_signal_connect(g,
99
-                                      "changed",
100
-                                      G_CALLBACK (changed_handler),
101
-                                      w);
102
+  g_signal_connect(g,
103
+                   "changed",
104
+                   G_CALLBACK (changed_handler),
105
+                   w);
106
 
107
   if (wParent)
108
     GWEN_Widget_AddChildGuiWidget(wParent, w);
109
diff --git a/gui/gtk3/w_dialog.c b/gui/gtk3/w_dialog.c
110
index 5a94c3d..6ec9545 100644
111
--- a/gui/gtk3/w_dialog.c
112
+++ b/gui/gtk3/w_dialog.c
113
@@ -177,9 +177,7 @@ int Gtk3Gui_WDialog_AddChildGuiWidget(GWEN_WIDGET *w, GWEN_WIDGET *wChild) {
114
 int Gtk3Gui_WDialog_Setup(GWEN_WIDGET *w) {
115
   GtkWidget *g;
116
   const char *s;
117
-  uint32_t flags;
118
 
119
-  flags=GWEN_Widget_GetFlags(w);
120
   s=GWEN_Widget_GetText(w, 0);
121
 
122
   g=gtk_window_new(GTK_WINDOW_TOPLEVEL);
123
diff --git a/gui/gtk3/w_gridlayout.c b/gui/gtk3/w_gridlayout.c
124
index 4fb7614..9920b3c 100644
125
--- a/gui/gtk3/w_gridlayout.c
126
+++ b/gui/gtk3/w_gridlayout.c
127
@@ -128,7 +128,6 @@ int Gtk3Gui_WGridLayout_AddChildGuiWidget(GWEN_WIDGET *w, GWEN_WIDGET *wChild) {
128
   GTK3_GRIDLAYOUT_WIDGET *xw;
129
   GtkWidget *g;
130
   GtkWidget *gChild;
131
-  uint32_t cflags;
132
   int x;
133
   int y;
134
 
135
@@ -136,7 +135,6 @@ int Gtk3Gui_WGridLayout_AddChildGuiWidget(GWEN_WIDGET *w, GWEN_WIDGET *wChild) {
136
   xw=GWEN_INHERIT_GETDATA(GWEN_WIDGET, GTK3_GRIDLAYOUT_WIDGET, w);
137
   assert(xw);
138
 
139
-  cflags=GWEN_Widget_GetFlags(wChild);
140
 
141
   g=GTK_WIDGET(GWEN_Widget_GetImplData(w, GTK3_DIALOG_WIDGET_REAL));
142
   assert(g);
143
@@ -194,7 +192,6 @@ void Gtk3Gui_WGridLayout_FreeData(void *bp, void *p) {
144
 
145
 int Gtk3Gui_WGridLayout_Setup(GWEN_WIDGET *w) {
146
   GtkWidget *g;
147
-  uint32_t flags;
148
   GWEN_WIDGET *wParent;
149
   GTK3_GRIDLAYOUT_WIDGET *xw;
150
   int rows;
151
@@ -203,7 +200,6 @@ int Gtk3Gui_WGridLayout_Setup(GWEN_WIDGET *w) {
152
   GWEN_NEW_OBJECT(GTK3_GRIDLAYOUT_WIDGET, xw);
153
   GWEN_INHERIT_SETDATA(GWEN_WIDGET, GTK3_GRIDLAYOUT_WIDGET, w, xw, Gtk3Gui_WGridLayout_FreeData);
154
 
155
-  flags=GWEN_Widget_GetFlags(w);
156
   wParent=GWEN_Widget_Tree_GetParent(w);
157
   cols=GWEN_Widget_GetColumns(w);
158
   rows=GWEN_Widget_GetRows(w);
159
diff --git a/gui/gtk3/w_groupbox.c b/gui/gtk3/w_groupbox.c
160
index 0bbb676..6efc743 100644
161
--- a/gui/gtk3/w_groupbox.c
162
+++ b/gui/gtk3/w_groupbox.c
163
@@ -171,10 +171,8 @@ int Gtk3Gui_WGroupBox_Setup(GWEN_WIDGET *w) {
164
   GtkWidget *g;
165
   GtkWidget *gContent;
166
   const char *s;
167
-  uint32_t flags;
168
   GWEN_WIDGET *wParent;
169
 
170
-  flags=GWEN_Widget_GetFlags(w);
171
   wParent=GWEN_Widget_Tree_GetParent(w);
172
   s=GWEN_Widget_GetText(w, 0);
173
 
174
diff --git a/gui/gtk3/w_hlayout.c b/gui/gtk3/w_hlayout.c
175
index b1a5e88..15b32b6 100644
176
--- a/gui/gtk3/w_hlayout.c
177
+++ b/gui/gtk3/w_hlayout.c
178
@@ -137,10 +137,8 @@ int Gtk3Gui_WHLayout_AddChildGuiWidget(GWEN_WIDGET *w, GWEN_WIDGET *wChild) {
179
 
180
 int Gtk3Gui_WHLayout_Setup(GWEN_WIDGET *w) {
181
   GtkWidget *g;
182
-  uint32_t flags;
183
   GWEN_WIDGET *wParent;
184
 
185
-  flags=GWEN_Widget_GetFlags(w);
186
   wParent=GWEN_Widget_Tree_GetParent(w);
187
 
188
   g=gtk_box_new(GTK_ORIENTATION_HORIZONTAL,
189
diff --git a/gui/gtk3/w_hline.c b/gui/gtk3/w_hline.c
190
index 245fdd9..12cb38e 100644
191
--- a/gui/gtk3/w_hline.c
192
+++ b/gui/gtk3/w_hline.c
193
@@ -76,10 +76,8 @@ int Gtk3Gui_WHLine_GetIntProperty(GWEN_WIDGET *w,
194
 
195
 int Gtk3Gui_WHLine_Setup(GWEN_WIDGET *w) {
196
   GtkWidget *g;
197
-  uint32_t flags;
198
   GWEN_WIDGET *wParent;
199
 
200
-  flags=GWEN_Widget_GetFlags(w);
201
   wParent=GWEN_Widget_Tree_GetParent(w);
202
 
203
   g=gtk_separator_new(GTK_ORIENTATION_HORIZONTAL);
204
diff --git a/gui/gtk3/w_hspacer.c b/gui/gtk3/w_hspacer.c
205
index 3691be4..1e1dbb1 100644
206
--- a/gui/gtk3/w_hspacer.c
207
+++ b/gui/gtk3/w_hspacer.c
208
@@ -76,10 +76,8 @@ int Gtk3Gui_WHSpacer_GetIntProperty(GWEN_WIDGET *w,
209
 
210
 int Gtk3Gui_WHSpacer_Setup(GWEN_WIDGET *w) {
211
   GtkWidget *g;
212
-  uint32_t flags;
213
   GWEN_WIDGET *wParent;
214
 
215
-  flags=GWEN_Widget_GetFlags(w);
216
   wParent=GWEN_Widget_Tree_GetParent(w);
217
 
218
   g=gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);
219
diff --git a/gui/gtk3/w_label.c b/gui/gtk3/w_label.c
220
index 0ac5e65..53946b0 100644
221
--- a/gui/gtk3/w_label.c
222
+++ b/gui/gtk3/w_label.c
223
@@ -146,11 +146,9 @@ const char* Gtk3Gui_WLabel_GetCharProperty(GWEN_WIDGET *w,
224
 int Gtk3Gui_WLabel_Setup(GWEN_WIDGET *w) {
225
   GtkWidget *g;
226
   const char *s;
227
-  uint32_t flags;
228
   GWEN_WIDGET *wParent;
229
   GWEN_BUFFER *tbuf;
230
 
231
-  flags=GWEN_Widget_GetFlags(w);
232
   wParent=GWEN_Widget_Tree_GetParent(w);
233
   s=GWEN_Widget_GetText(w, 0);
234
 
235
diff --git a/gui/gtk3/w_lineedit.c b/gui/gtk3/w_lineedit.c
236
index d93a0e0..b7d3e4e 100644
237
--- a/gui/gtk3/w_lineedit.c
238
+++ b/gui/gtk3/w_lineedit.c
239
@@ -183,8 +183,6 @@ int Gtk3Gui_WLineEdit_Setup(GWEN_WIDGET *w) {
240
   const char *s;
241
   uint32_t flags;
242
   GWEN_WIDGET *wParent;
243
-  gulong deleted_text_handler_id;
244
-  gulong inserted_text_handler_id;
245
   gboolean text_is_visible;
246
 
247
   flags=GWEN_Widget_GetFlags(w);
248
@@ -206,15 +204,15 @@ int Gtk3Gui_WLineEdit_Setup(GWEN_WIDGET *w) {
249
   GWEN_Widget_SetSetCharPropertyFn(w, Gtk3Gui_WLineEdit_SetCharProperty);
250
   GWEN_Widget_SetGetCharPropertyFn(w, Gtk3Gui_WLineEdit_GetCharProperty);
251
 
252
-  deleted_text_handler_id=g_signal_connect(gtk_entry_get_buffer(GTK_ENTRY(g)),
253
-                          "deleted-text",
254
-                          G_CALLBACK (Gtk3Gui_WLineEdit_Deleted_text_handler),
255
-                          w);
256
+  g_signal_connect(gtk_entry_get_buffer(GTK_ENTRY(g)),
257
+                   "deleted-text",
258
+                   G_CALLBACK (Gtk3Gui_WLineEdit_Deleted_text_handler),
259
+                   w);
260
 
261
-  inserted_text_handler_id=g_signal_connect(gtk_entry_get_buffer(GTK_ENTRY(g)),
262
-                           "inserted-text",
263
-                           G_CALLBACK (Gtk3Gui_WLineEdit_Inserted_text_handler),
264
-                           w);
265
+  g_signal_connect(gtk_entry_get_buffer(GTK_ENTRY(g)),
266
+                   "inserted-text",
267
+                   G_CALLBACK (Gtk3Gui_WLineEdit_Inserted_text_handler),
268
+                   w);
269
 
270
   if (wParent)
271
     GWEN_Widget_AddChildGuiWidget(wParent, w);
272
diff --git a/gui/gtk3/w_listbox.c b/gui/gtk3/w_listbox.c
273
index 610f149..e73ef36 100644
274
--- a/gui/gtk3/w_listbox.c
275
+++ b/gui/gtk3/w_listbox.c
276
@@ -252,7 +252,6 @@ int Gtk3Gui_WListBox_SetCharProperty(GWEN_WIDGET *w,
277
       GType types[W_LISTBOX_MAX_TYPES];
278
       GtkListStore *sto;
279
       int i;
280
-      const char *s;
281
       GtkTreeViewColumn *col;
282
       char *vcopy;
283
       char *p;
284
@@ -262,7 +261,6 @@ int Gtk3Gui_WListBox_SetCharProperty(GWEN_WIDGET *w,
285
       for (i=0; i<cols; i++)
286
         types[i]=G_TYPE_STRING;
287
       sto=gtk_list_store_newv(cols, types);
288
-      s=value;
289
 
290
       /* clear current headers in tree view */
291
       while( (col=gtk_tree_view_get_column(GTK_TREE_VIEW(g), 0)) )
292
@@ -497,11 +495,8 @@ static void Gtk3Gui_WListBox_CursorChanged_handler(GtkTreeView *g, gpointer data
293
 int Gtk3Gui_WListBox_Setup(GWEN_WIDGET *w) {
294
   GtkWidget *g;
295
   GtkWidget *gScroll;
296
-  uint32_t flags;
297
   GWEN_WIDGET *wParent;
298
-  gulong changed_handler_id;
299
 
300
-  flags=GWEN_Widget_GetFlags(w);
301
   wParent=GWEN_Widget_Tree_GetParent(w);
302
 
303
   gScroll=gtk_scrolled_window_new(NULL, NULL);
304
@@ -526,10 +521,10 @@ int Gtk3Gui_WListBox_Setup(GWEN_WIDGET *w) {
305
   GWEN_Widget_SetSetCharPropertyFn(w, Gtk3Gui_WListBox_SetCharProperty);
306
   GWEN_Widget_SetGetCharPropertyFn(w, Gtk3Gui_WListBox_GetCharProperty);
307
 
308
-  changed_handler_id=g_signal_connect(g,
309
-                                      "cursor-changed",
310
-                                      G_CALLBACK (Gtk3Gui_WListBox_CursorChanged_handler),
311
-                                      w);
312
+  g_signal_connect(g,
313
+                   "cursor-changed",
314
+                   G_CALLBACK (Gtk3Gui_WListBox_CursorChanged_handler),
315
+                   w);
316
 
317
   if (wParent)
318
     GWEN_Widget_AddChildGuiWidget(wParent, w);
319
diff --git a/gui/gtk3/w_progressbar.c b/gui/gtk3/w_progressbar.c
320
index dce0a78..019ec94 100644
321
--- a/gui/gtk3/w_progressbar.c
322
+++ b/gui/gtk3/w_progressbar.c
323
@@ -209,17 +209,13 @@ static void GWENHYWFAR_CB Gtk3Gui_WProgressBar_FreeData(void *bp, void *p) {
324
 
325
 int Gtk3Gui_WProgressBar_Setup(GWEN_WIDGET *w) {
326
   GtkWidget *g;
327
-  const char *s;
328
-  uint32_t flags;
329
   GWEN_WIDGET *wParent;
330
   W_PROGRESSBAR *xw;
331
 
332
   GWEN_NEW_OBJECT(W_PROGRESSBAR, xw);
333
   GWEN_INHERIT_SETDATA(GWEN_WIDGET, W_PROGRESSBAR, w, xw, Gtk3Gui_WProgressBar_FreeData);
334
 
335
-  flags=GWEN_Widget_GetFlags(w);
336
   wParent=GWEN_Widget_Tree_GetParent(w);
337
-  s=GWEN_Widget_GetText(w, 0);
338
 
339
   g=gtk_progress_bar_new();
340
   GWEN_Widget_SetImplData(w, GTK3_DIALOG_WIDGET_REAL, (void*) g);
341
diff --git a/gui/gtk3/w_pushbutton.c b/gui/gtk3/w_pushbutton.c
342
index aa222f4..af1ca1e 100644
343
--- a/gui/gtk3/w_pushbutton.c
344
+++ b/gui/gtk3/w_pushbutton.c
345
@@ -156,11 +156,8 @@ static void Gtk3Gui_WPushButton_Clicked_handler(GtkButton *button, gpointer data
346
 int Gtk3Gui_WPushButton_Setup(GWEN_WIDGET *w) {
347
   GtkWidget *g;
348
   const char *s;
349
-  uint32_t flags;
350
   GWEN_WIDGET *wParent;
351
-  gulong clicked_handler_id;
352
 
353
-  flags=GWEN_Widget_GetFlags(w);
354
   wParent=GWEN_Widget_Tree_GetParent(w);
355
   s=GWEN_Widget_GetText(w, 0);
356
 
357
@@ -204,10 +201,10 @@ int Gtk3Gui_WPushButton_Setup(GWEN_WIDGET *w) {
358
   GWEN_Widget_SetSetCharPropertyFn(w, Gtk3Gui_WPushButton_SetCharProperty);
359
   GWEN_Widget_SetGetCharPropertyFn(w, Gtk3Gui_WPushButton_GetCharProperty);
360
 
361
-  clicked_handler_id=g_signal_connect(g,
362
-                                      "clicked",
363
-                                      G_CALLBACK (Gtk3Gui_WPushButton_Clicked_handler),
364
-                                      w);
365
+  g_signal_connect(g,
366
+                   "clicked",
367
+                   G_CALLBACK (Gtk3Gui_WPushButton_Clicked_handler),
368
+                   w);
369
 
370
   if (wParent)
371
     GWEN_Widget_AddChildGuiWidget(wParent, w);
372
diff --git a/gui/gtk3/w_radiobutton.c b/gui/gtk3/w_radiobutton.c
373
index 3b176fc..ee13173 100644
374
--- a/gui/gtk3/w_radiobutton.c
375
+++ b/gui/gtk3/w_radiobutton.c
376
@@ -162,13 +162,11 @@ static void Gtk3Gui_WRadioButton_Toggled_handler(GtkButton *button, gpointer dat
377
 int Gtk3Gui_WRadioButton_Setup(GWEN_WIDGET *w) {
378
   GtkWidget *g;
379
   const char *s;
380
-  uint32_t flags;
381
   GWEN_WIDGET *wParent;
382
   GWEN_WIDGET *wT;
383
   gulong toggled_handler_id;
384
   int groupId;
385
 
386
-  flags=GWEN_Widget_GetFlags(w);
387
   wParent=GWEN_Widget_Tree_GetParent(w);
388
   groupId=GWEN_Widget_GetGroupId(w);
389
 
390
@@ -208,10 +206,10 @@ int Gtk3Gui_WRadioButton_Setup(GWEN_WIDGET *w) {
391
   GWEN_Widget_SetSetCharPropertyFn(w, Gtk3Gui_WRadioButton_SetCharProperty);
392
   GWEN_Widget_SetGetCharPropertyFn(w, Gtk3Gui_WRadioButton_GetCharProperty);
393
 
394
-  toggled_handler_id=g_signal_connect(g,
395
-                                      "toggled",
396
-                                      G_CALLBACK (Gtk3Gui_WRadioButton_Toggled_handler),
397
-                                      w);
398
+  g_signal_connect(g,
399
+                   "toggled",
400
+                   G_CALLBACK (Gtk3Gui_WRadioButton_Toggled_handler),
401
+                   w);
402
 
403
   if (wParent)
404
     GWEN_Widget_AddChildGuiWidget(wParent, w);
405
diff --git a/gui/gtk3/w_scrollarea.c b/gui/gtk3/w_scrollarea.c
406
index e5d1096..dc133d1 100644
407
--- a/gui/gtk3/w_scrollarea.c
408
+++ b/gui/gtk3/w_scrollarea.c
409
@@ -163,10 +163,8 @@ int Gtk3Gui_WScrollArea_AddChildGuiWidget(GWEN_WIDGET *w, GWEN_WIDGET *wChild) {
410
 int Gtk3Gui_WScrollArea_Setup(GWEN_WIDGET *w) {
411
   GtkWidget *g;
412
   GtkWidget *gContent;
413
-  uint32_t flags;
414
   GWEN_WIDGET *wParent;
415
 
416
-  flags=GWEN_Widget_GetFlags(w);
417
   wParent=GWEN_Widget_Tree_GetParent(w);
418
 
419
   /* create widget */
420
diff --git a/gui/gtk3/w_spinbox.c b/gui/gtk3/w_spinbox.c
421
index 5530f3b..02c314a 100644
422
--- a/gui/gtk3/w_spinbox.c
423
+++ b/gui/gtk3/w_spinbox.c
424
@@ -178,18 +178,13 @@ static void Gtk3Gui_WSpinBox_Changed_handler(GtkAdjustment *adjustment, gpointer
425
 
426
 int Gtk3Gui_WSpinBox_Setup(GWEN_WIDGET *w) {
427
   GtkWidget *g;
428
-  const char *s;
429
-  uint32_t flags;
430
   GWEN_WIDGET *wParent;
431
   W_SPINBOX *xw;
432
-  gulong changed_handler_id;
433
 
434
   GWEN_NEW_OBJECT(W_SPINBOX, xw);
435
   GWEN_INHERIT_SETDATA(GWEN_WIDGET, W_SPINBOX, w, xw, Gtk3Gui_WSpinBox_FreeData);
436
 
437
-  flags=GWEN_Widget_GetFlags(w);
438
   wParent=GWEN_Widget_Tree_GetParent(w);
439
-  s=GWEN_Widget_GetText(w, 0);
440
 
441
   xw->adjustment=GTK_ADJUSTMENT(gtk_adjustment_new(0.0, 0.0, 100.0, 1.0, 5.0, 5.0));
442
   g=gtk_spin_button_new(xw->adjustment, 1.0, 0);
443
@@ -201,10 +196,10 @@ int Gtk3Gui_WSpinBox_Setup(GWEN_WIDGET *w) {
444
   GWEN_Widget_SetSetCharPropertyFn(w, Gtk3Gui_WSpinBox_SetCharProperty);
445
   GWEN_Widget_SetGetCharPropertyFn(w, Gtk3Gui_WSpinBox_GetCharProperty);
446
 
447
-  changed_handler_id=g_signal_connect(g,
448
-                                      "value-changed",
449
-                                      G_CALLBACK (Gtk3Gui_WSpinBox_Changed_handler),
450
-                                      w);
451
+  g_signal_connect(g,
452
+                   "value-changed",
453
+                   G_CALLBACK (Gtk3Gui_WSpinBox_Changed_handler),
454
+                   w);
455
 
456
   if (wParent)
457
     GWEN_Widget_AddChildGuiWidget(wParent, w);
458
diff --git a/gui/gtk3/w_stack.c b/gui/gtk3/w_stack.c
459
index 3a4235f..100cc05 100644
460
--- a/gui/gtk3/w_stack.c
461
+++ b/gui/gtk3/w_stack.c
462
@@ -147,10 +147,8 @@ int Gtk3Gui_WStack_AddChildGuiWidget(GWEN_WIDGET *w, GWEN_WIDGET *wChild) {
463
 
464
 int Gtk3Gui_WStack_Setup(GWEN_WIDGET *w) {
465
   GtkWidget *g;
466
-  uint32_t flags;
467
   GWEN_WIDGET *wParent;
468
 
469
-  flags=GWEN_Widget_GetFlags(w);
470
   wParent=GWEN_Widget_Tree_GetParent(w);
471
 
472
   g=gtk_notebook_new();
473
diff --git a/gui/gtk3/w_tabbook.c b/gui/gtk3/w_tabbook.c
474
index 431ea8f..df6ce87 100644
475
--- a/gui/gtk3/w_tabbook.c
476
+++ b/gui/gtk3/w_tabbook.c
477
@@ -141,10 +141,8 @@ int Gtk3Gui_WTabBook_AddChildGuiWidget(GWEN_WIDGET *w, GWEN_WIDGET *wChild) {
478
 
479
 int Gtk3Gui_WTabBook_Setup(GWEN_WIDGET *w) {
480
   GtkWidget *g;
481
-  uint32_t flags;
482
   GWEN_WIDGET *wParent;
483
 
484
-  flags=GWEN_Widget_GetFlags(w);
485
   wParent=GWEN_Widget_Tree_GetParent(w);
486
 
487
   g=gtk_notebook_new();
488
diff --git a/gui/gtk3/w_textbrowser.c b/gui/gtk3/w_textbrowser.c
489
index 54667ea..ee4e474 100644
490
--- a/gui/gtk3/w_textbrowser.c
491
+++ b/gui/gtk3/w_textbrowser.c
492
@@ -193,10 +193,8 @@ int Gtk3Gui_WTextBrowser_Setup(GWEN_WIDGET *w) {
493
   GtkWidget *gs;
494
   GtkWidget *g;
495
   const char *s;
496
-  uint32_t flags;
497
   GWEN_WIDGET *wParent;
498
 
499
-  flags=GWEN_Widget_GetFlags(w);
500
   wParent=GWEN_Widget_Tree_GetParent(w);
501
   s=GWEN_Widget_GetText(w, 0);
502
 
503
diff --git a/gui/gtk3/w_textedit.c b/gui/gtk3/w_textedit.c
504
index d9213c1..fb2bedd 100644
505
--- a/gui/gtk3/w_textedit.c
506
+++ b/gui/gtk3/w_textedit.c
507
@@ -187,11 +187,8 @@ static void Gtk3Gui_WTextEdit_Changed_handler(GtkTextBuffer *buffer, gpointer da
508
 int Gtk3Gui_WTextEdit_Setup(GWEN_WIDGET *w) {
509
   GtkWidget *g;
510
   const char *s;
511
-  uint32_t flags;
512
   GWEN_WIDGET *wParent;
513
-  gulong changed_handler_id;
514
 
515
-  flags=GWEN_Widget_GetFlags(w);
516
   wParent=GWEN_Widget_Tree_GetParent(w);
517
   s=GWEN_Widget_GetText(w, 0);
518
 
519
@@ -208,7 +205,7 @@ int Gtk3Gui_WTextEdit_Setup(GWEN_WIDGET *w) {
520
   GWEN_Widget_SetSetCharPropertyFn(w, Gtk3Gui_WTextEdit_SetCharProperty);
521
   GWEN_Widget_SetGetCharPropertyFn(w, Gtk3Gui_WTextEdit_GetCharProperty);
522
 
523
-  changed_handler_id=g_signal_connect(gtk_text_view_get_buffer(GTK_TEXT_VIEW(g)),
524
+  g_signal_connect(gtk_text_view_get_buffer(GTK_TEXT_VIEW(g)),
525
                                       "changed",
526
                                       G_CALLBACK (Gtk3Gui_WTextEdit_Changed_handler),
527
                                       w);
528
diff --git a/gui/gtk3/w_vlayout.c b/gui/gtk3/w_vlayout.c
529
index a91398a..c0e3ce7 100644
530
--- a/gui/gtk3/w_vlayout.c
531
+++ b/gui/gtk3/w_vlayout.c
532
@@ -137,10 +137,8 @@ int Gtk3Gui_WVLayout_AddChildGuiWidget(GWEN_WIDGET *w, GWEN_WIDGET *wChild) {
533
 
534
 int Gtk3Gui_WVLayout_Setup(GWEN_WIDGET *w) {
535
   GtkWidget *g;
536
-  uint32_t flags;
537
   GWEN_WIDGET *wParent;
538
 
539
-  flags=GWEN_Widget_GetFlags(w);
540
   wParent=GWEN_Widget_Tree_GetParent(w);
541
 
542
   g=gtk_box_new(GTK_ORIENTATION_VERTICAL,
543
diff --git a/gui/gtk3/w_vline.c b/gui/gtk3/w_vline.c
544
index 573b20c..835657b 100644
545
--- a/gui/gtk3/w_vline.c
546
+++ b/gui/gtk3/w_vline.c
547
@@ -76,10 +76,8 @@ int Gtk3Gui_WVLine_GetIntProperty(GWEN_WIDGET *w,
548
 
549
 int Gtk3Gui_WVLine_Setup(GWEN_WIDGET *w) {
550
   GtkWidget *g;
551
-  uint32_t flags;
552
   GWEN_WIDGET *wParent;
553
 
554
-  flags=GWEN_Widget_GetFlags(w);
555
   wParent=GWEN_Widget_Tree_GetParent(w);
556
 
557
   g=gtk_separator_new(GTK_ORIENTATION_VERTICAL);
558
diff --git a/gui/gtk3/w_vspacer.c b/gui/gtk3/w_vspacer.c
559
index 533ee21..6e9f188 100644
560
--- a/gui/gtk3/w_vspacer.c
561
+++ b/gui/gtk3/w_vspacer.c
562
@@ -76,10 +76,8 @@ int Gtk3Gui_WVSpacer_GetIntProperty(GWEN_WIDGET *w,
563
 
564
 int Gtk3Gui_WVSpacer_Setup(GWEN_WIDGET *w) {
565
   GtkWidget *g;
566
-  uint32_t flags;
567
   GWEN_WIDGET *wParent;
568
 
569
-  flags=GWEN_Widget_GetFlags(w);
570
   wParent=GWEN_Widget_Tree_GetParent(w);
571
 
572
   g=gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
573
-- 
574
2.2.2
575