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

Remove unnecesssary local conversion method

This commit is contained in:
Dean Herbert 2021-01-08 17:44:12 +09:00
parent 86daf65630
commit a1cb6d8c54
2 changed files with 2 additions and 16 deletions

View File

@ -32,16 +32,5 @@ namespace osu.Game.Input.Bindings
public int Action { get; set; } public int Action { get; set; }
public string KeyCombination { 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;
}
}
} }
} }

View File

@ -68,11 +68,8 @@ namespace osu.Game.Input
usage.Context.Add(new RealmKeyBinding usage.Context.Add(new RealmKeyBinding
{ {
ID = Guid.NewGuid().ToString(), ID = Guid.NewGuid().ToString(),
KeyBinding = new KeyBinding KeyCombination = insertable.KeyCombination.ToString(),
{ Action = (int)insertable.Action,
KeyCombination = insertable.KeyCombination,
Action = insertable.Action,
},
RulesetID = rulesetId, RulesetID = rulesetId,
Variant = variant Variant = variant
}); });