Cleanup: Remove dead code in panel logic

The region types checked here were removed from the editors in 9e2abbc9ba and
eb7485389b. So the if-conditions would never be true.
This commit is contained in:
Julian Eisel 2020-10-03 14:44:31 +02:00
parent 0bf12cb025
commit e839179b01
1 changed files with 0 additions and 6 deletions

View File

@ -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;