Remove unnecessary schedule

This commit is contained in:
smoogipoo 2019-10-21 14:01:52 +09:00
parent dc222b5e4d
commit 74b6e691d8
1 changed files with 5 additions and 13 deletions

View File

@ -123,20 +123,12 @@ private void addBlueprintFor(DrawableHitObject hitObject)
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);