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:
Dean Herbert 2024-10-22 01:39:05 +09:00
parent 455ed0607f
commit cbaee98674
No known key found for this signature in database

View File

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