Removed SessionsTable#getPlaytime(UUID uuid, long afterDate) - not used

This commit is contained in:
Rsl1122 2019-02-02 12:34:35 +02:00
parent 4ecdc38f0a
commit 5ad767c83c
2 changed files with 1 additions and 12 deletions

View File

@ -190,17 +190,6 @@ public class SessionsTable extends Table {
return getPlaytime(uuid, getServerUUID());
}
/**
* Get Playtime of a Player after Epoch ms on THIS server.
*
* @param uuid UUID of the player.
* @param afterDate Epoch ms (Playtime after this date is calculated)
* @return Milliseconds played on THIS server. 0 if player or server not found.
*/
public long getPlaytime(UUID uuid, long afterDate) {
return getPlaytime(uuid, getServerUUID(), afterDate);
}
/**
* Get Total Playtime of a Player on a server.
*

View File

@ -356,7 +356,7 @@ public abstract class CommonDBTest {
commitTest();
assertEquals(expectedLength, sessionsTable.getPlaytime(playerUUID));
assertEquals(0L, sessionsTable.getPlaytime(playerUUID, 30000L));
assertEquals(0L, sessionsTable.getPlaytime(playerUUID, serverUUID, 30000L));
long playtimeOfServer = sessionsTable.getPlaytimeOfServer(serverUUID);
assertEquals(expectedLength, playtimeOfServer);