1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 00:02:54 +08:00

Remove useless container

This commit is contained in:
Dean Herbert 2020-01-23 16:20:42 +09:00
parent a696bab82f
commit 9d90799447
2 changed files with 5 additions and 9 deletions

View File

@ -32,7 +32,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
protected DragBox DragBox { get; private set; }
private SelectionBlueprintContainer selectionBlueprints;
private Container<SelectionBlueprint> selectionBlueprints;
private SelectionHandler selectionHandler;
@ -83,7 +83,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
};
}
protected virtual SelectionBlueprintContainer CreateSelectionBlueprintContainer() => new SelectionBlueprintContainer { RelativeSizeAxes = Axes.Both };
protected virtual Container<SelectionBlueprint> CreateSelectionBlueprintContainer() =>
new Container<SelectionBlueprint> { RelativeSizeAxes = Axes.Both };
protected override void LoadComplete()
{
@ -430,10 +431,5 @@ namespace osu.Game.Screens.Edit.Compose.Components
beatmap.HitObjectRemoved -= removeBlueprintFor;
}
}
protected class SelectionBlueprintContainer : Container<SelectionBlueprint>
{
//todo: remove
}
}
}

View File

@ -42,7 +42,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
});
}
protected override SelectionBlueprintContainer CreateSelectionBlueprintContainer() => new TimelineSelectionBlueprintContainer { RelativeSizeAxes = Axes.Both };
protected override Container<SelectionBlueprint> CreateSelectionBlueprintContainer() => new TimelineSelectionBlueprintContainer { RelativeSizeAxes = Axes.Both };
protected override void LoadComplete()
{
@ -130,7 +130,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
}
}
protected class TimelineSelectionBlueprintContainer : SelectionBlueprintContainer
protected class TimelineSelectionBlueprintContainer : Container<SelectionBlueprint>
{
protected override Container<SelectionBlueprint> Content { get; }