1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:57:39 +08:00

Remove unused cancellationToken parameter in synchronous BeatmapOnlineLookupQueue flow

This commit is contained in:
Dean Herbert 2022-01-14 13:19:00 +09:00
parent 9b33fbbee5
commit 8424d86e9a
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ namespace osu.Game.Beatmaps
prepareLocalCache();
}
public void Update(BeatmapSetInfo beatmapSet, CancellationToken cancellationToken)
public void Update(BeatmapSetInfo beatmapSet)
{
foreach (var b in beatmapSet.Beatmaps)
lookup(beatmapSet, b);

View File

@ -71,7 +71,7 @@ namespace osu.Game.Stores
bool hadOnlineIDs = beatmapSet.Beatmaps.Any(b => b.OnlineID > 0);
onlineLookupQueue?.Update(beatmapSet, cancellationToken);
onlineLookupQueue?.Update(beatmapSet);
// ensure at least one beatmap was able to retrieve or keep an online ID, else drop the set ID.
if (hadOnlineIDs && !beatmapSet.Beatmaps.Any(b => b.OnlineID > 0))