Removed SessionsTable#getSessionCount(UUID uuid) - not used

This commit is contained in:
Rsl1122 2019-02-02 12:37:21 +02:00
parent b9cf17eaad
commit 28df900c0a
2 changed files with 2 additions and 12 deletions

View File

@ -255,16 +255,6 @@ public class SessionsTable extends Table {
});
}
/**
* Used to get total Session count of a Player on THIS server.
*
* @param uuid UUID of the player.
* @return How many sessions player has. 0 if player or server not found.
*/
public int getSessionCount(UUID uuid) {
return getSessionCount(uuid, 0L);
}
/**
* Used to get total Session count of a Player on THIS server after a given epoch ms.
*

View File

@ -362,8 +362,8 @@ public abstract class CommonDBTest {
assertEquals(expectedLength, playtimeOfServer);
assertEquals(0L, sessionsTable.getPlaytimeOfServer(serverUUID, 30000L));
assertEquals(1, sessionsTable.getSessionCount(playerUUID));
assertEquals(0, sessionsTable.getSessionCount(playerUUID, 30000L));
assertEquals(1, sessionsTable.getSessionCount(playerUUID, serverUUID, 0L));
assertEquals(0, sessionsTable.getSessionCount(playerUUID, serverUUID, 30000L));
}
@Test