Revert "Fix removal of FileInfo, BeatmapMetadata, BeatmapDifficulty objects"

This commit is contained in:
Dean Herbert
2017-10-16 12:55:36 +09:00
parent 56e8c7303c
commit 04e5f764a3
7 changed files with 168 additions and 186 deletions

View File

@ -73,11 +73,6 @@ namespace osu.Game.Beatmaps
if (beatmapSet.DeletePending) return false;
beatmapSet.DeletePending = true;
// We can't use one to one relationship with its cascade delete because FileInfo can be used not only inside of BeatmapSetFileInfo
var files = beatmapSet.Files.Select(beatmapSetFileInfo => beatmapSetFileInfo.FileInfo);
Connection.FileInfo.RemoveRange(files);
Connection.BeatmapSetInfo.Remove(beatmapSet);
Connection.SaveChanges();