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

Remove unused function

This commit is contained in:
Andrei Zavatski 2019-08-12 16:28:53 +03:00
parent b71c776e65
commit 86c9d5251f

View File

@ -84,7 +84,11 @@ namespace osu.Game.Overlays.BeatmapSet
protected override bool OnHover(HoverEvent e)
{
if (!SelectedMods.Value.Any())
dehighlightAll();
modsContainer.ForEach(button =>
{
if (!button.IsHovered)
button.Highlighted.Value = false;
});
return base.OnHover(e);
}
@ -99,15 +103,6 @@ namespace osu.Game.Overlays.BeatmapSet
public void DeselectAll() => modsContainer.ForEach(mod => mod.Selected.Value = false);
private void dehighlightAll()
{
modsContainer.ForEach(button =>
{
if (!button.IsHovered)
button.Highlighted.Value = false;
});
}
private class ModButton : ModIcon
{
private const float mod_scale = 0.4f;