1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 22:22:55 +08:00

Remove hide/restore event flow

This commit is contained in:
Dean Herbert 2022-01-11 21:41:10 +09:00
parent c06b5951fd
commit 9beabad6a4

View File

@ -113,16 +113,6 @@ namespace osu.Game.Beatmaps
return imported.PerformRead(s => GetWorkingBeatmap(s.Beatmaps.First()));
}
/// <summary>
/// Fired when a single difficulty has been hidden.
/// </summary>
public event Action<BeatmapInfo>? BeatmapHidden;
/// <summary>
/// Fired when a single difficulty has been restored.
/// </summary>
public event Action<BeatmapInfo>? BeatmapRestored;
/// <summary>
/// Delete a beatmap difficulty.
/// </summary>
@ -134,8 +124,6 @@ namespace osu.Game.Beatmaps
{
beatmapInfo.Hidden = true;
transaction.Commit();
BeatmapHidden?.Invoke(beatmapInfo);
}
}
@ -150,8 +138,6 @@ namespace osu.Game.Beatmaps
{
beatmapInfo.Hidden = false;
transaction.Commit();
BeatmapRestored?.Invoke(beatmapInfo);
}
}