From e865cc7e80e2484f36dc93ba2bfdc686c14a6fdc Mon Sep 17 00:00:00 2001 From: David Benn Date: Fri, 21 Jun 2024 17:59:15 +0930 Subject: [PATCH] #431: removed unused code --- .../vstar/ui/mediator/DocumentManager.java | 18 ------------------ .../tools/vstar/ui/mediator/Mediator.java | 1 - 2 files changed, 19 deletions(-) diff --git a/src/org/aavso/tools/vstar/ui/mediator/DocumentManager.java b/src/org/aavso/tools/vstar/ui/mediator/DocumentManager.java index 55d564c0..56c9d51f 100644 --- a/src/org/aavso/tools/vstar/ui/mediator/DocumentManager.java +++ b/src/org/aavso/tools/vstar/ui/mediator/DocumentManager.java @@ -403,24 +403,6 @@ public boolean canBeRemoved() { }; } - /** - * Return a new star listener that initialises the maps. - * TODO: prob don't need this now! - */ -// public Listener createNewStarListener() { -// return new Listener() { -// @Override -// public void update(NewStarMessage info) { -// init(); -// } -// -// @Override -// public boolean canBeRemoved() { -// return false; -// } -// }; -// } - /** * Find and return the active window or null if one does not exist, e.g. the * case where the UI is that of an applet. diff --git a/src/org/aavso/tools/vstar/ui/mediator/Mediator.java b/src/org/aavso/tools/vstar/ui/mediator/Mediator.java index 6ad769fb..5fa90c09 100644 --- a/src/org/aavso/tools/vstar/ui/mediator/Mediator.java +++ b/src/org/aavso/tools/vstar/ui/mediator/Mediator.java @@ -956,7 +956,6 @@ public DocumentManager getDocumentManager() { if (documentManager == null) { documentManager = new DocumentManager(); phaseChangeNotifier.addListener(documentManager.createPhaseChangeListener(), true); -// newStarNotifier.addListener(documentManager.createNewStarListener(), true); } return documentManager;