Cleanup: Remove dead code in panel logic
The region types checked here were removed from the editors in9e2abbc9ba
andeb7485389b
. So the if-conditions would never be true.
This commit is contained in:
parent
0bf12cb025
commit
e839179b01
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue