diff options
author | Julian Eisel <julian@blender.org> | 2020-10-03 15:44:31 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-10-03 15:44:31 +0300 |
commit | e839179b014a2dac2b5cab6425bf7c382b9b0d1c (patch) | |
tree | 99f883bbcd9ccfc4fdcf3e53d33430529ae365ba | |
parent | 0bf12cb025a3fd143318b4a38db46b3c114cdf3f (diff) |
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.
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 6 |
1 files changed, 0 insertions, 6 deletions
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; |