1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 19:00:07 +08: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:
Dean Herbert
2024-10-22 01:39:05 +09:00
Unverified
parent 455ed0607f
commit cbaee98674
-4
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);
}