From ebe6fc151f2ebf63cde3094d4d462d591d35b25d Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Fri, 4 Nov 2022 11:17:46 +0100 Subject: deduplicate doLayout and onDisplay, they do the same thing (more or less) --- .../src/main/java/at/asit/pdfover/gui/workflow/StateMachine.java | 1 - .../at/asit/pdfover/gui/workflow/states/ConfigurationUIState.java | 6 ------ 2 files changed, 7 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachine.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachine.java index 1ac40b8f..b5df6ff3 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachine.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/StateMachine.java @@ -150,7 +150,6 @@ public class StateMachine { */ public void display(StateComposite composite) { this.mainWindow.setTopControl(composite); - composite.onDisplay(); } private void createMainWindow() { diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/ConfigurationUIState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/ConfigurationUIState.java index 2aad12c9..7393f13e 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/ConfigurationUIState.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/ConfigurationUIState.java @@ -34,14 +34,8 @@ import at.asit.pdfover.gui.workflow.config.ConfigurationManager; * */ public class ConfigurationUIState extends State { - /** - * SLF4J Logger instance - **/ - @SuppressWarnings("unused") private static final Logger log = LoggerFactory.getLogger(ConfigurationUIState.class); - - private ConfigurationComposite configurationComposite = null; private ConfigurationComposite getConfigurationComposite() { -- cgit v1.2.3