Console crashed on start-up due to gauges layout code being fragile #4742

i think it's just better without that check
This commit is contained in:
rusefi 2022-11-06 17:33:20 -05:00
parent 4f5f381e93
commit f26a095b9b
1 changed files with 0 additions and 6 deletions

View File

@ -56,12 +56,6 @@ public class GaugesPanel {
private static final int DEFAULT_COLUMNS = 3;
public static boolean IS_PAUSED; // dirty but works for not
static {
int expected = SizeSelectorPanel.WIDTH * SizeSelectorPanel.HEIGHT;
if (DEFAULT_LAYOUT.length != expected)
throw new IllegalStateException("Invalid gauges panel size " + DEFAULT_LAYOUT.length + " while " + expected + " expected");
}
private final JPanel content = new JPanel(new BorderLayout());
private final GaugesGrid gauges;
private final Node config;