From 1c4acbe38c7ac6f77a1e27f249261bcfaa9a658e Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 20 May 2008 19:58:34 +0200 Subject: [PATCH] [tag] Make static and remove useless functions Signed-off-by: Julien Danjou --- tag.c | 44 +++++++++++++------------------------------- tag.h | 2 -- 2 files changed, 13 insertions(+), 33 deletions(-) diff --git a/tag.c b/tag.c index 1423b32c0..817824687 100644 --- a/tag.c +++ b/tag.c @@ -37,6 +37,19 @@ extern AwesomeConf globalconf; +/** View or unview a tag. + * \param tag the tag + * \param view set visible or not + */ +static void +tag_view(tag_t *tag, bool view) +{ + tag->selected = view; + ewmh_update_net_current_desktop(screen_virttophys(tag->screen)); + widget_invalidate_cache(tag->screen, WIDGET_CACHE_TAGS); + globalconf.screens[tag->screen].need_arrange = true; +} + /** Create a new tag. Parameteres values are checked. * \param name tag name * \param layout layout to use @@ -206,24 +219,6 @@ tag_view_only(tag_t *target) tag_view(tag, tag == target); } -/** Use an index to set a tag viewable. - * \param screen the screen id - * \param dindex the index - * \param view the view value - */ -void -tag_view_byindex(int screen, int dindex, bool view) -{ - tag_t *tag; - - if(dindex < 0) - return; - - for(tag = globalconf.screens[screen].tags; tag && dindex > 0; - tag = tag->next, dindex--); - tag_view(tag, view); -} - /** View only a tag, selected by its index. * \param screen screen id * \param dindex the index @@ -241,19 +236,6 @@ tag_view_only_byindex(int screen, int dindex) tag_view_only(tag); } -/** View or unview a tag. - * \param tag the tag - * \param view set visible or not - */ -void -tag_view(tag_t *tag, bool view) -{ - tag->selected = view; - ewmh_update_net_current_desktop(screen_virttophys(tag->screen)); - widget_invalidate_cache(tag->screen, WIDGET_CACHE_TAGS); - globalconf.screens[tag->screen].need_arrange = true; -} - static int luaA_tag_eq(lua_State *L) { diff --git a/tag.h b/tag.h index 502fa5cc5..d6b0a6143 100644 --- a/tag.h +++ b/tag.h @@ -38,8 +38,6 @@ tag_delete(tag_t **tag) p_delete(tag); } -void tag_view(tag_t *, bool); -void tag_view_byindex(int, int, bool); tag_t ** tags_get_current(int); void tag_client(client_t *, tag_t *); void untag_client(client_t *, tag_t *);