1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 21:02:55 +08:00

Remove unnecessary schedule

This commit is contained in:
smoogipoo 2019-10-21 14:01:52 +09:00
parent dc222b5e4d
commit 74b6e691d8

View File

@ -123,20 +123,12 @@ namespace osu.Game.Screens.Edit.Compose.Components
if (blueprint == null)
return;
if (hitObject.IsLoaded)
addBlueprint();
else
hitObject.OnLoadComplete += _ => addBlueprint();
blueprint.Selected += onBlueprintSelected;
blueprint.Deselected += onBlueprintDeselected;
blueprint.SelectionRequested += onSelectionRequested;
blueprint.DragRequested += onDragRequested;
void addBlueprint()
{
blueprint.Selected += onBlueprintSelected;
blueprint.Deselected += onBlueprintDeselected;
blueprint.SelectionRequested += onSelectionRequested;
blueprint.DragRequested += onDragRequested;
selectionBlueprints.Add(blueprint);
}
selectionBlueprints.Add(blueprint);
}
private void removeBlueprintFor(DrawableHitObject hitObject) => removeBlueprintFor(hitObject.HitObject);