From e839179b014a2dac2b5cab6425bf7c382b9b0d1c Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Sat, 3 Oct 2020 14:44:31 +0200 Subject: Cleanup: Remove dead code in panel logic The region types checked here were removed from the editors in 9e2abbc9ba5d and eb7485389b8a. So the if-conditions would never be true. --- source/blender/editors/interface/interface_panel.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'source/blender/editors/interface/interface_panel.c') diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index ec4e2c03e85..974e2c62ab2 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -204,12 +204,6 @@ static bool panels_need_realign(ScrArea *area, ARegion *region, Panel **r_panel_ return true; } } - else if (area->spacetype == SPACE_IMAGE && region->regiontype == RGN_TYPE_PREVIEW) { - return true; - } - else if (area->spacetype == SPACE_FILE && region->regiontype == RGN_TYPE_CHANNELS) { - return true; - } /* Detect if a panel was added or removed. */ Panel *panel_animation = NULL; -- cgit v1.2.3