From 690ed63eb55d1c52b051d8ce40e76e1b57291f29 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 18 Apr 2019 20:02:09 +0200 Subject: Cleanup: unused region init functions --- source/blender/editors/space_nla/nla_intern.h | 2 -- source/blender/editors/space_nla/space_nla.c | 28 --------------------------- 2 files changed, 30 deletions(-) (limited to 'source/blender/editors/space_nla') diff --git a/source/blender/editors/space_nla/nla_intern.h b/source/blender/editors/space_nla/nla_intern.h index ea067cf4847..2b20ab69fa7 100644 --- a/source/blender/editors/space_nla/nla_intern.h +++ b/source/blender/editors/space_nla/nla_intern.h @@ -32,8 +32,6 @@ /* **************************************** */ /* space_nla.c / nla_buttons.c */ -ARegion *nla_has_buttons_region(ScrArea *sa); - bool nla_panel_context(const bContext *C, PointerRNA *adt_ptr, PointerRNA *nlt_ptr, diff --git a/source/blender/editors/space_nla/space_nla.c b/source/blender/editors/space_nla/space_nla.c index ccf2e552644..26a7b42efd2 100644 --- a/source/blender/editors/space_nla/space_nla.c +++ b/source/blender/editors/space_nla/space_nla.c @@ -53,34 +53,6 @@ #include "nla_intern.h" /* own include */ #include "GPU_framebuffer.h" -/* ******************** manage regions ********************* */ - -ARegion *nla_has_buttons_region(ScrArea *sa) -{ - ARegion *ar, *arnew; - - ar = BKE_area_find_region_type(sa, RGN_TYPE_UI); - if (ar) - return ar; - - /* add subdiv level; after main */ - ar = BKE_area_find_region_type(sa, RGN_TYPE_WINDOW); - - /* is error! */ - if (ar == NULL) - return NULL; - - arnew = MEM_callocN(sizeof(ARegion), "buttons for nla"); - - BLI_insertlinkafter(&sa->regionbase, ar, arnew); - arnew->regiontype = RGN_TYPE_UI; - arnew->alignment = RGN_ALIGN_RIGHT; - - arnew->flag = RGN_FLAG_HIDDEN; - - return arnew; -} - /* ******************** default callbacks for nla space ***************** */ static SpaceLink *nla_new(const ScrArea *sa, const Scene *scene) -- cgit v1.2.3