close redis because no memory leaks around at anarchyfreedom

also remove unused imports
This commit is contained in:
spacerocket62 2020-10-27 14:22:59 -07:00
parent ebcc9f2fcc
commit 5400581b3d
6 changed files with 0 additions and 14 deletions

View File

@ -5,8 +5,6 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import me.totalfreedom.plex.cache.MongoPlayerData; import me.totalfreedom.plex.cache.MongoPlayerData;
import me.totalfreedom.plex.cache.SQLPlayerData; 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.listeners.PlayerListener;
import me.totalfreedom.plex.storage.MongoConnection; import me.totalfreedom.plex.storage.MongoConnection;
import me.totalfreedom.plex.storage.RedisConnection; import me.totalfreedom.plex.storage.RedisConnection;

View File

@ -1,13 +1,10 @@
package me.totalfreedom.plex.cache; package me.totalfreedom.plex.cache;
import com.google.common.collect.Maps;
import dev.morphia.query.Query; import dev.morphia.query.Query;
import dev.morphia.query.UpdateOperations; import dev.morphia.query.UpdateOperations;
import me.totalfreedom.plex.Plex; import me.totalfreedom.plex.Plex;
import me.totalfreedom.plex.player.PlexPlayer; import me.totalfreedom.plex.player.PlexPlayer;
import me.totalfreedom.plex.player.PunishedPlayer;
import java.util.Map;
import java.util.UUID; import java.util.UUID;
public class MongoPlayerData public class MongoPlayerData

View File

@ -1,6 +1,5 @@
package me.totalfreedom.plex.cache; package me.totalfreedom.plex.cache;
import dev.morphia.DAO;
import dev.morphia.Datastore; import dev.morphia.Datastore;
import dev.morphia.Key; import dev.morphia.Key;
import dev.morphia.dao.BasicDAO; import dev.morphia.dao.BasicDAO;

View File

@ -1,22 +1,16 @@
package me.totalfreedom.plex.cache; package me.totalfreedom.plex.cache;
import com.google.common.collect.Maps;
import com.google.common.reflect.TypeToken; import com.google.common.reflect.TypeToken;
import com.google.gson.Gson; import com.google.gson.Gson;
import dev.morphia.query.Query;
import dev.morphia.query.UpdateOperations;
import me.totalfreedom.plex.Plex; import me.totalfreedom.plex.Plex;
import me.totalfreedom.plex.player.PlexPlayer; import me.totalfreedom.plex.player.PlexPlayer;
import me.totalfreedom.plex.player.PunishedPlayer;
import me.totalfreedom.plex.rank.Rank; import me.totalfreedom.plex.rank.Rank;
import java.sql.Connection; import java.sql.Connection;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map;
import java.util.UUID; import java.util.UUID;
public class SQLPlayerData public class SQLPlayerData

View File

@ -8,7 +8,6 @@ import lombok.AccessLevel;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
import me.totalfreedom.plex.rank.Rank; import me.totalfreedom.plex.rank.Rank;
import me.totalfreedom.plex.storage.MongoConnection;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,7 +1,6 @@
package me.totalfreedom.plex.storage; package me.totalfreedom.plex.storage;
import me.totalfreedom.plex.Plex; import me.totalfreedom.plex.Plex;
import me.totalfreedom.plex.util.PlexLog;
import java.io.File; import java.io.File;
import java.sql.Connection; import java.sql.Connection;