mirror of
https://github.com/ppy/osu.git
synced 2025-03-26 20:17:22 +08:00
style(KeyCounterDisplay): remove type check
This commit is contained in:
parent
d0e8d65766
commit
c94e647e21
@ -29,15 +29,10 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
public override void Add(KeyCounter key)
|
||||
{
|
||||
if (!CheckType(key))
|
||||
throw new ArgumentException($"{key.GetType()} is not a supported {nameof(KeyCounter)}.", nameof(key));
|
||||
|
||||
base.Add(key);
|
||||
key.IsCounting = IsCounting;
|
||||
}
|
||||
|
||||
protected virtual bool CheckType(KeyCounter key) => true;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuConfigManager config)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user