From c9dad58ad4187f17777fabbe5732ce7c88f68c59 Mon Sep 17 00:00:00 2001 From: Voltstro Date: Tue, 24 Dec 2019 18:37:11 +1000 Subject: [PATCH] Removed some code unnessary for 1.0 --- .../Core/Managers/UserAccountsManager.cs | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/src/Pootis-Bot/Core/Managers/UserAccountsManager.cs b/src/Pootis-Bot/Core/Managers/UserAccountsManager.cs index 4498760f..b2b768fd 100644 --- a/src/Pootis-Bot/Core/Managers/UserAccountsManager.cs +++ b/src/Pootis-Bot/Core/Managers/UserAccountsManager.cs @@ -1,8 +1,6 @@ using System.Collections.Generic; -using System.IO; using System.Linq; using Discord.WebSocket; -using Pootis_Bot.Core.Logging; using Pootis_Bot.Entities; using Pootis_Bot.Helpers; @@ -21,13 +19,6 @@ static UserAccountsManager() } else { - if (CheckForOldFileName()) - { - Logger.Log("Renamed accounts.json to UserAccounts.json", LogVerbosity.Warn); - Accounts = DataStorage.LoadUserAccounts(AccountsFile).ToList(); - return; - } - Accounts = new List(); SaveAccounts(); } @@ -70,19 +61,6 @@ private static UserAccount GetOrCreateAccount(SocketGuildUser user) return account; } - //TODO: Remove this in the 1.0.0 release - /// - /// Checks for old file name (accounts.json) - /// - /// Returns true if upgraded - private static bool CheckForOldFileName() - { - if (!DataStorage.SaveExists("Resources/accounts.json")) return false; - - File.Move("Resources/accounts.json", AccountsFile); - return true; - } - private static UserAccount CreateUserAccount(SocketGuildUser user) { UserAccount newAccount = new UserAccount