Remove unnecessary contains checks

This commit is contained in:
Dean Herbert
2020-09-11 22:03:19 +09:00
parent 22e6df02b6
commit 94d929d8cd

View File

@ -144,8 +144,6 @@ namespace osu.Game.Screens.Edit.Compose.Components
/// </summary>
/// <param name="blueprint">The blueprint.</param>
internal void HandleSelected(SelectionBlueprint blueprint)
{
if (!selectedBlueprints.Contains(blueprint))
{
selectedBlueprints.Add(blueprint);
@ -155,21 +153,17 @@ namespace osu.Game.Screens.Edit.Compose.Components
UpdateVisibility();
}
}
/// <summary>
/// Handle a blueprint becoming deselected.
/// </summary>
/// <param name="blueprint">The blueprint.</param>
internal void HandleDeselected(SelectionBlueprint blueprint)
{
if (selectedBlueprints.Remove(blueprint))
{
EditorBeatmap.SelectedHitObjects.Remove(blueprint.HitObject);
UpdateVisibility();
}
}
/// <summary>
/// Handle a blueprint requesting selection.