Skip to content

Commit

Permalink
Merge pull request ppy#30379 from peppy/dont-delete-scores
Browse files Browse the repository at this point in the history
Don't delete scores when deleting beatmaps
  • Loading branch information
smoogipoo authored Oct 22, 2024
2 parents 455ed06 + cbaee98 commit 1bdae2a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions osu.Game/Database/RealmAccess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,6 @@ private void cleanupPendingDeletions(Realm realm)
{
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);
}
Expand Down

0 comments on commit 1bdae2a

Please sign in to comment.