1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 01:23:44 +08:00

Mark some delegates as static because we can

This commit is contained in:
Dean Herbert 2024-01-29 16:12:00 +09:00
parent eb90ee5415
commit 760368709a
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ namespace osu.Game.Rulesets.Osu
base.ReloadMappings(realmKeyBindings); base.ReloadMappings(realmKeyBindings);
if (!AllowGameplayInputs) if (!AllowGameplayInputs)
KeyBindings = KeyBindings.Where(b => b.GetAction<OsuAction>() == OsuAction.Smoke).ToList(); KeyBindings = KeyBindings.Where(static b => b.GetAction<OsuAction>() == OsuAction.Smoke).ToList();
} }
} }
} }

View File

@ -218,7 +218,7 @@ namespace osu.Game.Rulesets.UI
{ {
base.ReloadMappings(realmKeyBindings); base.ReloadMappings(realmKeyBindings);
KeyBindings = KeyBindings.Where(b => RealmKeyBindingStore.CheckValidForGameplay(b.KeyCombination)).ToList(); KeyBindings = KeyBindings.Where(static b => RealmKeyBindingStore.CheckValidForGameplay(b.KeyCombination)).ToList();
RealmKeyBindingStore.ClearDuplicateBindings(KeyBindings); RealmKeyBindingStore.ClearDuplicateBindings(KeyBindings);
} }
} }