ARTEMIS-335 Remove dead code from MQTTPublishManager
This commit is contained in:
parent
e8b189a74f
commit
fe0cb648d6
|
@ -90,16 +90,7 @@ public class MQTTPublishManager {
|
|||
}
|
||||
|
||||
private int generateMqttId(int qos) {
|
||||
if (qos == 1) {
|
||||
return session.getSessionState().generateId();
|
||||
}
|
||||
else {
|
||||
Integer mqttid = session.getSessionState().generateId();
|
||||
if (mqttid == null) {
|
||||
mqttid = (int) session.getServer().getStorageManager().generateID();
|
||||
}
|
||||
return mqttid;
|
||||
}
|
||||
return session.getSessionState().generateId();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue