Skip to content

Commit 99e6a3f

Browse files
committed
Subscribe Command > Remove redundant getClientDataKey() method
1 parent 1d2b304 commit 99e6a3f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/main/java/com/hivemq/cli/mqtt/AbstractMqttClientExecutor.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -511,10 +511,4 @@ public boolean isConnected(final @NotNull Context context) {
511511
new String(mqtt3Publish.getPayloadAsBytes(), StandardCharsets.UTF_8));
512512
}
513513
}
514-
515-
private @NotNull String getClientDataKey(final @NotNull MqttClient client) {
516-
final String clientId = client.getConfig().getClientIdentifier().map(Objects::toString).orElse("null");
517-
final String serverHost = client.getConfig().getServerHost();
518-
return "client {" + "identifier='" + clientId + '\'' + ", host='" + serverHost + '\'' + '}';
519-
}
520514
}

0 commit comments

Comments
 (0)