From 76bbf61201a4b21bf02d651926dab5211d305a98 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 30 Mar 2014 18:08:21 +0200 Subject: [PATCH] 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 --- objects/drawin.c | 6 ------ objects/drawin.h | 4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/objects/drawin.c b/objects/drawin.c index dde10c486..da426e1aa 100644 --- a/objects/drawin.c +++ b/objects/drawin.c @@ -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) { diff --git a/objects/drawin.h b/objects/drawin.h index c2a7608a6..29b6a0f8a 100644 --- a/objects/drawin.h +++ b/objects/drawin.h @@ -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);