From b52f74613837276e3f30f1d4bd65788c8759e15c Mon Sep 17 00:00:00 2001 From: Archi Date: Fri, 4 Feb 2022 14:47:13 +0100 Subject: [PATCH] Remove dead code --- ArchiSteamFarm/Steam/Storage/BotDatabase.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ArchiSteamFarm/Steam/Storage/BotDatabase.cs b/ArchiSteamFarm/Steam/Storage/BotDatabase.cs index 3f761b793..3b3bcec2e 100644 --- a/ArchiSteamFarm/Steam/Storage/BotDatabase.cs +++ b/ArchiSteamFarm/Steam/Storage/BotDatabase.cs @@ -94,8 +94,6 @@ internal sealed class BotDatabase : SerializableFile { [JsonProperty(PropertyName = $"_{nameof(MobileAuthenticator)}")] private MobileAuthenticator? BackingMobileAuthenticator; - private bool SaveNeededDueToMigration; - private BotDatabase(string filePath) { if (string.IsNullOrEmpty(filePath)) { throw new ArgumentNullException(nameof(filePath)); @@ -203,12 +201,6 @@ internal sealed class BotDatabase : SerializableFile { botDatabase.FilePath = filePath; - if (botDatabase.SaveNeededDueToMigration) { - botDatabase.SaveNeededDueToMigration = false; - - Utilities.InBackground(botDatabase.Save); - } - return botDatabase; }