mirror of
https://github.com/ppy/osu
synced 2024-12-24 15:53:37 +00:00
Don't delete scores when deleting beatmaps
The score model's spec allows for null `BeatmapInfo` so the reasoning of the inline comment is no longer valid. We match based on hash these days.
This commit is contained in:
parent
455ed0607f
commit
cbaee98674
@ -376,10 +376,6 @@ namespace osu.Game.Database
|
||||
{
|
||||
foreach (var beatmap in beatmapSet.Beatmaps)
|
||||
{
|
||||
// Cascade delete related scores, else they will have a null beatmap against the model's spec.
|
||||
foreach (var score in beatmap.Scores)
|
||||
realm.Remove(score);
|
||||
|
||||
realm.Remove(beatmap.Metadata);
|
||||
realm.Remove(beatmap);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user