Skip to content

Commit

Permalink
remove redundant startup method
Browse files Browse the repository at this point in the history
- Config.load() is already called in Main#main
  • Loading branch information
lucalewin committed Sep 19, 2021
1 parent a1e36f4 commit 58fcb99
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
public class ConverterApplication extends Application {
@Override
public void start(Stage stage) throws IOException {
startup();

FXMLLoader fxmlLoader = new FXMLLoader(ConverterApplication.class.getResource("converter.fxml"));
Screen screen = Screen.getPrimary();
Scene scene = new Scene(fxmlLoader.load(), screen.getBounds().getWidth() / 2, screen.getBounds().getHeight() / 2);
Expand All @@ -32,9 +30,4 @@ public void start(Stage stage) throws IOException {

stage.show();
}

public void startup() {
Config.load();
}

}

0 comments on commit 58fcb99

Please sign in to comment.