refactor(java-cli): drop dead no-arg GalaxyCommand ctors (Task 3 review)

This commit is contained in:
Joseph Doherty
2026-06-16 17:28:43 -04:00
parent 44d676aede
commit aa8ae6613b
@@ -372,10 +372,6 @@ public final class MxGatewayCli implements Callable<Integer> {
@Option(names = "--json", description = "Write JSON output.")
boolean json;
GalaxyCommand() {
this(new GrpcGalaxyClientFactory());
}
GalaxyCommand(GalaxyClientFactory galaxyClientFactory) {
this.galaxyClientFactory = galaxyClientFactory;
}
@@ -390,9 +386,6 @@ public final class MxGatewayCli implements Callable<Integer> {
aliases = {"galaxy-test"},
description = "Calls GalaxyRepository.TestConnection.")
static final class GalaxyTestConnectionCommand extends GalaxyCommand {
GalaxyTestConnectionCommand() {
}
GalaxyTestConnectionCommand(GalaxyClientFactory galaxyClientFactory) {
super(galaxyClientFactory);
}
@@ -421,9 +414,6 @@ public final class MxGatewayCli implements Callable<Integer> {
aliases = {"galaxy-deploy-time"},
description = "Calls GalaxyRepository.GetLastDeployTime.")
static final class GalaxyDeployTimeCommand extends GalaxyCommand {
GalaxyDeployTimeCommand() {
}
GalaxyDeployTimeCommand(GalaxyClientFactory galaxyClientFactory) {
super(galaxyClientFactory);
}
@@ -452,9 +442,6 @@ public final class MxGatewayCli implements Callable<Integer> {
@Command(name = "galaxy-discover", description = "Calls GalaxyRepository.DiscoverHierarchy.")
static final class GalaxyDiscoverCommand extends GalaxyCommand {
GalaxyDiscoverCommand() {
}
GalaxyDiscoverCommand(GalaxyClientFactory galaxyClientFactory) {
super(galaxyClientFactory);
}
@@ -494,9 +481,6 @@ public final class MxGatewayCli implements Callable<Integer> {
name = "galaxy-browse",
description = "Browses the Galaxy hierarchy via GalaxyRepository.BrowseChildren.")
static final class GalaxyBrowseCommand extends GalaxyCommand {
GalaxyBrowseCommand() {
}
GalaxyBrowseCommand(GalaxyClientFactory galaxyClientFactory) {
super(galaxyClientFactory);
}
@@ -761,9 +745,6 @@ public final class MxGatewayCli implements Callable<Integer> {
name = "galaxy-watch",
description = "Streams GalaxyRepository.WatchDeployEvents until cancelled.")
static final class GalaxyWatchCommand extends GalaxyCommand {
GalaxyWatchCommand() {
}
GalaxyWatchCommand(GalaxyClientFactory galaxyClientFactory) {
super(galaxyClientFactory);
}