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:
Uli Schlachter 2014-03-30 18:08:21 +02:00
parent fed199eee5
commit 76bbf61201
2 changed files with 1 additions and 9 deletions

View file

@ -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)
{

View file

@ -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);