ARTEMIS-335 Remove dead code from MQTTPublishManager

This commit is contained in:
Martyn Taylor 2016-07-20 13:24:09 +01:00 committed by jbertram
parent e8b189a74f
commit fe0cb648d6
1 changed files with 1 additions and 10 deletions

View File

@ -90,17 +90,8 @@ 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;
}
}
/**
* Since MQTT Subscriptions can over lap; a client may receive the same message twice. When this happens the client