Remove useless bindable check

This commit is contained in:
Andrei Zavatski 2019-06-24 02:01:00 +03:00
parent 94e819578e
commit 35db20a337
2 changed files with 2 additions and 13 deletions

View File

@ -92,12 +92,7 @@ namespace osu.Game.Overlays.Toolbar
private readonly Cached activeMode = new Cached();
protected override void OnRulesetChanged(ValueChangedEvent<RulesetInfo> e)
{
base.OnRulesetChanged(e);
activeMode.Invalidate();
}
protected override void OnRulesetChanged(ValueChangedEvent<RulesetInfo> e) => activeMode.Invalidate();
protected override void UpdateAfterChildren()
{

View File

@ -15,12 +15,6 @@ namespace osu.Game.Rulesets
Current.BindValueChanged(OnRulesetChanged);
}
protected virtual void OnRulesetChanged(ValueChangedEvent<RulesetInfo> e)
{
if (Current.Disabled)
{
return;
}
}
protected abstract void OnRulesetChanged(ValueChangedEvent<RulesetInfo> e);
}
}