From 0eee6795dff55c30be495dae1d64036b8e95ccbb Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 18 Jun 2009 10:21:11 +0200 Subject: [PATCH] widget: remove useless assignment Signed-off-by: Julien Danjou --- widget.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/widget.c b/widget.c index b43775a1..c47d333b 100644 --- a/widget.c +++ b/widget.c @@ -352,14 +352,13 @@ luaA_widget_new(lua_State *L) const char *align, *type; widget_t *w; widget_constructor_t *wc = NULL; - awesome_token_t token; size_t len; luaA_checktable(L, 2); type = luaA_getopt_lstring(L, 2, "type", NULL, &len); - switch((token = a_tokenize(type, len))) + switch(a_tokenize(type, len)) { case A_TK_TEXTBOX: wc = widget_textbox;