Remove unnecessary schedule

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

View File

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