mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Remove TryGetValue as it won't work
This commit is contained in:
@ -25,16 +25,6 @@ namespace osu.Game.Skinning
|
||||
public TValue GetValue<TConfiguration, TValue>(Func<TConfiguration, TValue> query) where TConfiguration : SkinConfiguration
|
||||
=> Configuration is TConfiguration conf ? query.Invoke(conf) : default;
|
||||
|
||||
public bool TryGetValue<TConfiguration, TValue>(Func<TConfiguration, TValue, bool> query, out TValue val) where TConfiguration : SkinConfiguration
|
||||
{
|
||||
val = default;
|
||||
|
||||
if (Configuration is TConfiguration conf)
|
||||
return query(conf, val);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
protected Skin(SkinInfo skin)
|
||||
{
|
||||
SkinInfo = skin;
|
||||
|
Reference in New Issue
Block a user