mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-16 07:47:22 +01:00
drawin: Remove dead code
The only caller for drawin_unref_simplified() is in ARRAY_FUNCS() and here it is only used in the implementation of drawin_array_wipe(). However, this function is unused and thus we don't need drawin_unref_simplified() either. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
fed199eee5
commit
76bbf61201
2 changed files with 1 additions and 9 deletions
|
@ -72,12 +72,6 @@ drawin_wipe(drawin_t *w)
|
|||
w->drawable = NULL;
|
||||
}
|
||||
|
||||
void
|
||||
drawin_unref_simplified(drawin_t **item)
|
||||
{
|
||||
luaA_object_unref(globalconf.L, *item);
|
||||
}
|
||||
|
||||
static void
|
||||
drawin_update_drawing(drawin_t *w, int widx)
|
||||
{
|
||||
|
|
|
@ -44,9 +44,7 @@ struct drawin_t
|
|||
area_t geometry;
|
||||
};
|
||||
|
||||
void drawin_unref_simplified(drawin_t **);
|
||||
|
||||
ARRAY_FUNCS(drawin_t *, drawin, drawin_unref_simplified)
|
||||
ARRAY_FUNCS(drawin_t *, drawin, DO_NOTHING)
|
||||
|
||||
drawin_t * drawin_getbywin(xcb_window_t);
|
||||
|
||||
|
|
Loading…
Reference in a new issue