Ticket #3693: code cleanup before 4.8.19 release.

WRadio: remove unused 'state' field.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2016-11-24 11:21:26 +03:00
parent 43d7fce730
commit aa6055b6aa
2 changed files with 2 additions and 3 deletions

View File

@ -195,7 +195,6 @@ radio_new (int y, int x, int count, const char **texts)
/* 4 is width of "(*) " */
widget_init (w, y, x, count, 4 + wmax, radio_callback, radio_mouse_callback);
w->options |= WOP_SELECTABLE | WOP_WANT_CURSOR | WOP_WANT_HOTKEY;
r->state = 1;
r->pos = 0;
r->sel = 0;
r->count = count;

View File

@ -17,8 +17,8 @@
typedef struct WRadio
{
Widget widget;
unsigned int state; /* radio button state */
int pos, sel;
int pos;
int sel;
int count; /* number of members */
hotkey_t *texts; /* texts of labels */
} WRadio;