Removed no more used methods

This commit is contained in:
andsel
2015-11-16 23:53:10 +01:00
parent 9236def453
commit fdf5b03983
5 changed files with 2 additions and 55 deletions
@@ -42,7 +42,7 @@ import static org.junit.Assert.assertTrue;
* @author andreaorg.eclipse.moquette.commons.Constants.
*/
public class ServerIntegrationWebSocketTest {
private static final Logger LOG = LoggerFactory.getLogger(ServerIntegrationPahoTest.class);
private static final Logger LOG = LoggerFactory.getLogger(ServerIntegrationWebSocketTest.class);
Server m_server;
WebSocketClient client;
@@ -79,7 +79,7 @@ public class ServerIntegrationWebSocketTest {
URI echoUri = new URI(destUri);
ClientUpgradeRequest request = new ClientUpgradeRequest();
client.connect(socket, echoUri, request);
LOG.info("Connecting to : %s%n", echoUri);
LOG.info("Connecting to : %s", echoUri);
boolean connected = socket.awaitConnected(4, TimeUnit.SECONDS);
assertTrue(connected);
@@ -46,7 +46,6 @@ public class MemoryStorageService implements IMessagesStore, ISessionsStore {
//maps clientID->[messageID*]
private Map<String, Set<Integer>> m_secondPhaseStore = new HashMap<>();
private Map<String, Set<Integer>> m_inflightIDs = new HashMap<>();
private Map<String, PublishEvent> m_qos2Store = new HashMap<>();
private Map<String, Map<Integer, String>> m_messageToGuids = new HashMap<>();
private MemorySessionStore m_sessionsStore;
@@ -147,28 +146,11 @@ public class MemoryStorageService implements IMessagesStore, ISessionsStore {
return nextPacketId;
}
@Override
public void close() {
//To change body of implemented methods use File | Settings | File Templates.
}
@Override
public void persistQoS2Message(String publishKey, PublishEvent evt) {
LOG.debug("persistQoS2Message store pubKey {}, evt {}", publishKey, evt);
m_qos2Store.put(publishKey, evt);
}
@Override
public void removeQoS2Message(String publishKey) {
m_qos2Store.remove(publishKey);
}
@Override
public PublishEvent retrieveQoS2Message(String publishKey) {
return m_qos2Store.get(publishKey);
}
@Override
public void addNewSubscription(Subscription newSubscription) {
m_sessionsStore.addNewSubscription(newSubscription);