Remove dead code

This commit is contained in:
Archi
2022-02-04 14:47:13 +01:00
parent a2585ec8c9
commit b52f746138

View File

@@ -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;
}