From eae8afdd7e1bd27fff78cf4b1c6908ef6683ddc1 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 27 Aug 2008 14:23:41 +0200 Subject: [PATCH] client: remove deprecated focus_{set,get} Signed-off-by: Julien Danjou --- client.c | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/client.c b/client.c index ae68f7d3..9823b3f2 100644 --- a/client.c +++ b/client.c @@ -1026,20 +1026,6 @@ luaA_client_visible_get(lua_State *L) return 1; } -/** Get the currently focused client (DEPRECATED). - * \param L The Lua VM state. - * \luastack - * \lreturn The currently focused client. - */ -static int -luaA_client_focus_get(lua_State *L) -{ - deprecate(); - if(globalconf.screen_focus->client_focus) - return luaA_client_userdata_new(L, globalconf.screen_focus->client_focus); - return 0; -} - /** Set client border width. * \param c The client. * \param width The border width. @@ -1140,21 +1126,6 @@ luaA_client_tags(lua_State *L) return 1; } -/** Focus a client (DEPRECATED). - * \param L The Lua VM state. - * - * \luastack - * \lvalue A client. - */ -static int -luaA_client_focus_set(lua_State *L) -{ - client_t **c = luaA_checkudata(L, 1, "client"); - client_focus(*c); - deprecate(); - return 0; -} - /** Raise a client on top of others which are on the same layer. * \param L The Lua VM state. * @@ -1629,7 +1600,6 @@ luaA_client_module_newindex(lua_State *L) const struct luaL_reg awesome_client_methods[] = { { "get", luaA_client_get }, - { "focus_get", luaA_client_focus_get }, { "visible_get", luaA_client_visible_get }, { "__index", luaA_client_module_index }, { "__newindex", luaA_client_module_newindex }, @@ -1643,7 +1613,6 @@ const struct luaL_reg awesome_client_meta[] = { "tags", luaA_client_tags }, { "kill", luaA_client_kill }, { "swap", luaA_client_swap }, - { "focus_set", luaA_client_focus_set }, { "raise", luaA_client_raise }, { "redraw", luaA_client_redraw }, { "mouse_resize", luaA_client_mouse_resize },