style(KeyCounterDisplay): remove type check

This commit is contained in:
tsrk 2023-02-17 09:09:56 +00:00
parent d0e8d65766
commit c94e647e21
No known key found for this signature in database
GPG Key ID: EBD46BB3049B56D6

View File

@ -29,15 +29,10 @@ namespace osu.Game.Screens.Play
public override void Add(KeyCounter key) 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); base.Add(key);
key.IsCounting = IsCounting; key.IsCounting = IsCounting;
} }
protected virtual bool CheckType(KeyCounter key) => true;
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(OsuConfigManager config) private void load(OsuConfigManager config)
{ {