Skip to content

Commit

Permalink
Remove MQTT system broker leftovers (openhab#2842)
Browse files Browse the repository at this point in the history
The MqttService was used to keep track of the system MQTT brokers.
Since there are none it can be removed as well as the observer, tests, configuration and translations.

Fixes openhab#2841

Signed-off-by: Wouter Born <github@maindrain.net>
  • Loading branch information
wborn committed Mar 17, 2022
1 parent 7ae37f8 commit 9e33db6
Show file tree
Hide file tree
Showing 22 changed files with 6 additions and 1,204 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.eclipse.jdt.annotation.Nullable;

/**
* Contains configuration for a MqttBrokerConnection. Necessary to add a new broker connection the {@link MqttService}.
* Contains configuration for a MqttBrokerConnection.
*
* @author David Graeff - Initial contribution
* @author Mark Herwege - Added flag for hostname validation
Expand Down Expand Up @@ -53,7 +53,7 @@ public String getBrokerID() {
if (name != null && name.length() > 0) {
return name;
} else {
StringBuffer b = new StringBuffer();
StringBuilder b = new StringBuilder();
if (host != null) {
b.append(host);
}
Expand All @@ -74,7 +74,7 @@ public String getBrokerID() {
*/
@Override
public String toString() {
StringBuffer b = new StringBuffer();
StringBuilder b = new StringBuilder();
if (name != null) {
b.append(name);
b.append(", ");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
*/
package org.openhab.core.io.transport.mqtt;

import org.eclipse.jdt.annotation.NonNullByDefault;

/**
* The connection state of a {@link MqttBrokerConnection}.
*
* @author David Graeff - Initial contribution
*/
@NonNullByDefault
public enum MqttConnectionState {
DISCONNECTED,
CONNECTING,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 9e33db6

Please sign in to comment.