wibox: remove deprecation warnings

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-09-14 15:07:34 +02:00
parent 3fd3bd2f85
commit 5b27fb014e
1 changed files with 1 additions and 15 deletions

14
wibox.c
View File

@ -1158,7 +1158,6 @@ luaA_wibox_set_align(lua_State *L, wibox_t *wibox)
switch(wibox->type)
{
case WIBOX_TYPE_NORMAL:
luaA_deprecate(L, "awful.wibox.align");
break;
case WIBOX_TYPE_TITLEBAR:
titlebar_update_geometry(client_getbytitlebar(wibox));
@ -1175,8 +1174,6 @@ luaA_wibox_set_align(lua_State *L, wibox_t *wibox)
static int
luaA_wibox_get_align(lua_State *L, wibox_t *wibox)
{
if(wibox->type == WIBOX_TYPE_NORMAL)
luaA_deprecate(L, "awful.wibox.align");
lua_pushstring(L, draw_align_tostr(wibox->align));
return 1;
}
@ -1192,15 +1189,6 @@ luaA_wibox_set_position(lua_State *L, wibox_t *wibox)
switch(wibox->type)
{
case WIBOX_TYPE_NORMAL:
{
size_t len;
const char *buf;
if((buf = luaL_checklstring(L, -1, &len)))
{
luaA_deprecate(L, "awful.wibox.attach");
wibox->position = position_fromstr(buf, len);
}
}
break;
case WIBOX_TYPE_TITLEBAR:
return luaA_titlebar_set_position(L, -3);
@ -1216,8 +1204,6 @@ luaA_wibox_set_position(lua_State *L, wibox_t *wibox)
static int
luaA_wibox_get_position(lua_State *L, wibox_t *wibox)
{
if(wibox->type == WIBOX_TYPE_NORMAL)
luaA_deprecate(L, "awful.wibox.attach");
lua_pushstring(L, position_tostr(wibox->position));
return 1;
}