From a69ddea29d50baef08380faed087483725c2bc1a Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Fri, 11 Sep 2020 14:26:05 -0500 Subject: Cleanup: Remove unused variables and function Somehow these changes were lost while pulling the previous commit from the property-search-ui-v2 branch. --- source/blender/editors/space_buttons/buttons_context.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'source') diff --git a/source/blender/editors/space_buttons/buttons_context.c b/source/blender/editors/space_buttons/buttons_context.c index 9228853ed19..84a020a9ed7 100644 --- a/source/blender/editors/space_buttons/buttons_context.c +++ b/source/blender/editors/space_buttons/buttons_context.c @@ -1115,27 +1115,11 @@ int buttons_context(const bContext *C, const char *member, bContextDataResult *r /************************* Drawing the Path ************************/ -static void pin_cb(bContext *C, void *UNUSED(arg1), void *UNUSED(arg2)) -{ - SpaceProperties *sbuts = CTX_wm_space_properties(C); - - if (sbuts->flag & SB_PIN_CONTEXT) { - sbuts->pinid = buttons_context_id_path(C); - } - else { - sbuts->pinid = NULL; - } - - ED_area_tag_redraw(CTX_wm_area(C)); -} - void buttons_context_draw(const bContext *C, uiLayout *layout) { SpaceProperties *sbuts = CTX_wm_space_properties(C); ButsContextPath *path = sbuts->path; uiLayout *row, *sub; - uiBlock *block; - uiBut *but; PointerRNA *ptr; char namebuf[128], *name; int a, icon; -- cgit v1.2.3