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 --- .../blender/editors/space_action/action_intern.h | 2 -- source/blender/editors/space_action/space_action.c | 28 ---------------------- 2 files changed, 30 deletions(-) (limited to 'source/blender/editors/space_action') diff --git a/source/blender/editors/space_action/action_intern.h b/source/blender/editors/space_action/action_intern.h index bf2880dea36..eaca7968a34 100644 --- a/source/blender/editors/space_action/action_intern.h +++ b/source/blender/editors/space_action/action_intern.h @@ -40,8 +40,6 @@ struct wmOperatorType; /* **************************************** */ /* space_action.c / action_buttons.c */ -struct ARegion *action_has_buttons_region(struct ScrArea *sa); - void action_buttons_register(struct ARegionType *art); /* ***************************************** */ diff --git a/source/blender/editors/space_action/space_action.c b/source/blender/editors/space_action/space_action.c index eda8ad4a787..4c133e6a91e 100644 --- a/source/blender/editors/space_action/space_action.c +++ b/source/blender/editors/space_action/space_action.c @@ -56,34 +56,6 @@ #include "action_intern.h" /* own include */ #include "GPU_framebuffer.h" -/* ******************** manage regions ********************* */ - -ARegion *action_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 action"); - - 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 action space ***************** */ static SpaceLink *action_new(const ScrArea *sa, const Scene *scene) -- cgit v1.2.3