From dcee599f8cb7d87339b2c77d5ff2f183506a8385 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 27 Dec 2007 13:23:50 +0100 Subject: [PATCH] remove deprecated functions --- layout.c | 28 ---------------------------- layout.h | 2 -- 2 files changed, 30 deletions(-) diff --git a/layout.c b/layout.c index a9eda8fc..7ccf05ac 100644 --- a/layout.c +++ b/layout.c @@ -47,23 +47,6 @@ const NameFuncLink LayoutsList[] = {NULL, NULL} }; -/** Find the index of the first currently selected tag - * \param screen the screen to search - * \return tag - */ -#warning this function is bugged and should be replaced -Tag * -get_current_tag(int screen) -{ - Tag *tag; - - for(tag = globalconf.screens[screen].tags; tag; tag = tag->next) - if(tag->selected) - return tag; - - return NULL; -} - /** Arrange windows following current selected layout * \param screen the screen to arrange */ @@ -89,17 +72,6 @@ arrange(int screen) restack(screen); } -Layout * -get_current_layout(int screen) -{ - Tag *curtag; - - if ((curtag = get_current_tag(screen))) - return curtag->layout; - - return NULL; -} - /** Send focus to next client in stack * \param screen Screen ID * \param arg Unused diff --git a/layout.h b/layout.h index 7ba5030d..a652dcca 100644 --- a/layout.h +++ b/layout.h @@ -27,8 +27,6 @@ #define AWESOMEPROPS_ATOM(disp) XInternAtom(disp, "_AWESOME_PROPERTIES", False) void arrange(int); -Layout * get_current_layout(int) __attribute__ ((deprecated)); -Tag * get_current_tag(int) __attribute__ ((deprecated)); void restack(int); void loadawesomeprops(int); void saveawesomeprops(int);