mirror of https://github.com/ppy/osu
Remove unnecessary schedule
This commit is contained in:
parent
dc222b5e4d
commit
74b6e691d8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue