mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 13:37:25 +08:00
Remove unnecesssary local conversion method
This commit is contained in:
parent
86daf65630
commit
a1cb6d8c54
@ -32,16 +32,5 @@ namespace osu.Game.Input.Bindings
|
||||
public int Action { get; set; }
|
||||
|
||||
public string KeyCombination { get; set; }
|
||||
|
||||
[Ignored]
|
||||
public KeyBinding KeyBinding
|
||||
{
|
||||
get => new KeyBinding(KeyCombination, Action);
|
||||
set
|
||||
{
|
||||
KeyCombination = value.KeyCombination.ToString();
|
||||
Action = (int)value.Action;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -68,11 +68,8 @@ namespace osu.Game.Input
|
||||
usage.Context.Add(new RealmKeyBinding
|
||||
{
|
||||
ID = Guid.NewGuid().ToString(),
|
||||
KeyBinding = new KeyBinding
|
||||
{
|
||||
KeyCombination = insertable.KeyCombination,
|
||||
Action = insertable.Action,
|
||||
},
|
||||
KeyCombination = insertable.KeyCombination.ToString(),
|
||||
Action = (int)insertable.Action,
|
||||
RulesetID = rulesetId,
|
||||
Variant = variant
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user