Don't backup collection database

This is no longer required due to recent changes which mean the
collection database will retain beatmap references even if they aren't
loaded locally (see https://github.com/ppy/osu/pull/18619).
This commit is contained in:
Dean Herbert 2022-06-16 16:48:52 +09:00
parent 739a696467
commit 17dbb599d1

View File

@ -244,15 +244,6 @@ namespace osu.Game
EFContextFactory.CreateBackup(Path.Combine(backup_folder, $"client.{migration}.db"));
realm.CreateBackup(Path.Combine(backup_folder, $"client.{migration}.realm"));
using (var source = Storage.GetStream("collection.db"))
{
if (source != null)
{
using (var destination = Storage.CreateFileSafely(Path.Combine(backup_folder, $"collection.{migration}.db")))
source.CopyTo(destination);
}
}
}
dependencies.CacheAs(Storage);