widget: remove useless assignment
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
88ef17ce94
commit
0eee6795df
3
widget.c
3
widget.c
|
@ -352,14 +352,13 @@ luaA_widget_new(lua_State *L)
|
||||||
const char *align, *type;
|
const char *align, *type;
|
||||||
widget_t *w;
|
widget_t *w;
|
||||||
widget_constructor_t *wc = NULL;
|
widget_constructor_t *wc = NULL;
|
||||||
awesome_token_t token;
|
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|
||||||
luaA_checktable(L, 2);
|
luaA_checktable(L, 2);
|
||||||
|
|
||||||
type = luaA_getopt_lstring(L, 2, "type", NULL, &len);
|
type = luaA_getopt_lstring(L, 2, "type", NULL, &len);
|
||||||
|
|
||||||
switch((token = a_tokenize(type, len)))
|
switch(a_tokenize(type, len))
|
||||||
{
|
{
|
||||||
case A_TK_TEXTBOX:
|
case A_TK_TEXTBOX:
|
||||||
wc = widget_textbox;
|
wc = widget_textbox;
|
||||||
|
|
Loading…
Reference in New Issue