Remove hacky code

This commit is contained in:
Dean Herbert 2021-01-05 14:54:59 +09:00
parent 81355652fa
commit ed6ffe2ef1

View File

@ -53,14 +53,7 @@ namespace osu.Game.Screens.OnlinePlay.Components
var databasedBeatmap = beatmaps.QueryBeatmap(b => b.OnlineBeatmapID == beatmapId && b.MD5Hash == checksum);
if (databasedBeatmap == null)
hasBeatmap = false;
else
{
// DeletePending isn't updated in the beatmap info query above, need to directly query the beatmap set from database as well.
var databasedSet = beatmaps.QueryBeatmapSet(s => s.Equals(databasedBeatmap.BeatmapSet));
hasBeatmap = databasedSet?.DeletePending == false;
}
hasBeatmap = databasedBeatmap?.BeatmapSet?.DeletePending == false;
}
protected override void Update()