From 5400581b3d26d72cba904ecda40c9bafe9902ac1 Mon Sep 17 00:00:00 2001 From: spacerocket62 Date: Tue, 27 Oct 2020 14:22:59 -0700 Subject: [PATCH] close redis because no memory leaks around at anarchyfreedom also remove unused imports --- src/main/java/me/totalfreedom/plex/Plex.java | 2 -- .../java/me/totalfreedom/plex/cache/MongoPlayerData.java | 3 --- src/main/java/me/totalfreedom/plex/cache/PlexPlayerDAO.java | 1 - src/main/java/me/totalfreedom/plex/cache/SQLPlayerData.java | 6 ------ src/main/java/me/totalfreedom/plex/player/PlexPlayer.java | 1 - .../java/me/totalfreedom/plex/storage/SQLConnection.java | 1 - 6 files changed, 14 deletions(-) diff --git a/src/main/java/me/totalfreedom/plex/Plex.java b/src/main/java/me/totalfreedom/plex/Plex.java index 1ce69b1..9ff4dc1 100644 --- a/src/main/java/me/totalfreedom/plex/Plex.java +++ b/src/main/java/me/totalfreedom/plex/Plex.java @@ -5,8 +5,6 @@ import lombok.Getter; import lombok.Setter; import me.totalfreedom.plex.cache.MongoPlayerData; import me.totalfreedom.plex.cache.SQLPlayerData; -import me.totalfreedom.plex.config.Config; -import me.totalfreedom.plex.config.YamlConfig; import me.totalfreedom.plex.listeners.PlayerListener; import me.totalfreedom.plex.storage.MongoConnection; import me.totalfreedom.plex.storage.RedisConnection; diff --git a/src/main/java/me/totalfreedom/plex/cache/MongoPlayerData.java b/src/main/java/me/totalfreedom/plex/cache/MongoPlayerData.java index b8ec048..2c3e7fa 100644 --- a/src/main/java/me/totalfreedom/plex/cache/MongoPlayerData.java +++ b/src/main/java/me/totalfreedom/plex/cache/MongoPlayerData.java @@ -1,13 +1,10 @@ package me.totalfreedom.plex.cache; -import com.google.common.collect.Maps; import dev.morphia.query.Query; import dev.morphia.query.UpdateOperations; import me.totalfreedom.plex.Plex; import me.totalfreedom.plex.player.PlexPlayer; -import me.totalfreedom.plex.player.PunishedPlayer; -import java.util.Map; import java.util.UUID; public class MongoPlayerData diff --git a/src/main/java/me/totalfreedom/plex/cache/PlexPlayerDAO.java b/src/main/java/me/totalfreedom/plex/cache/PlexPlayerDAO.java index cae6c87..974b2ff 100644 --- a/src/main/java/me/totalfreedom/plex/cache/PlexPlayerDAO.java +++ b/src/main/java/me/totalfreedom/plex/cache/PlexPlayerDAO.java @@ -1,6 +1,5 @@ package me.totalfreedom.plex.cache; -import dev.morphia.DAO; import dev.morphia.Datastore; import dev.morphia.Key; import dev.morphia.dao.BasicDAO; diff --git a/src/main/java/me/totalfreedom/plex/cache/SQLPlayerData.java b/src/main/java/me/totalfreedom/plex/cache/SQLPlayerData.java index 431865f..582ba00 100644 --- a/src/main/java/me/totalfreedom/plex/cache/SQLPlayerData.java +++ b/src/main/java/me/totalfreedom/plex/cache/SQLPlayerData.java @@ -1,22 +1,16 @@ package me.totalfreedom.plex.cache; -import com.google.common.collect.Maps; import com.google.common.reflect.TypeToken; import com.google.gson.Gson; -import dev.morphia.query.Query; -import dev.morphia.query.UpdateOperations; import me.totalfreedom.plex.Plex; import me.totalfreedom.plex.player.PlexPlayer; -import me.totalfreedom.plex.player.PunishedPlayer; import me.totalfreedom.plex.rank.Rank; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; -import java.util.ArrayList; import java.util.List; -import java.util.Map; import java.util.UUID; public class SQLPlayerData diff --git a/src/main/java/me/totalfreedom/plex/player/PlexPlayer.java b/src/main/java/me/totalfreedom/plex/player/PlexPlayer.java index e819697..37efa3f 100644 --- a/src/main/java/me/totalfreedom/plex/player/PlexPlayer.java +++ b/src/main/java/me/totalfreedom/plex/player/PlexPlayer.java @@ -8,7 +8,6 @@ import lombok.AccessLevel; import lombok.Getter; import lombok.Setter; import me.totalfreedom.plex.rank.Rank; -import me.totalfreedom.plex.storage.MongoConnection; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/me/totalfreedom/plex/storage/SQLConnection.java b/src/main/java/me/totalfreedom/plex/storage/SQLConnection.java index 9b2c2aa..1dc0000 100644 --- a/src/main/java/me/totalfreedom/plex/storage/SQLConnection.java +++ b/src/main/java/me/totalfreedom/plex/storage/SQLConnection.java @@ -1,7 +1,6 @@ package me.totalfreedom.plex.storage; import me.totalfreedom.plex.Plex; -import me.totalfreedom.plex.util.PlexLog; import java.io.File; import java.sql.Connection;