1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:17:26 +08:00

style(KeyCounter): remove useless Content override

This commit is contained in:
tsrk 2023-06-15 12:33:26 +02:00
parent a61c1116f5
commit 184c793f56
No known key found for this signature in database
GPG Key ID: EBD46BB3049B56D6

View File

@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
namespace osu.Game.Screens.Play.HUD
@ -27,10 +26,6 @@ namespace osu.Game.Screens.Play.HUD
/// </summary>
public IBindable<int> CountPresses => Trigger.ActivationCount;
private readonly Container content;
protected override Container<Drawable> Content => content;
/// <summary>
/// Whether this <see cref="KeyCounter"/> is currently in the "activated" state because the associated key is currently pressed.
/// </summary>
@ -38,14 +33,6 @@ namespace osu.Game.Screens.Play.HUD
protected KeyCounter(InputTrigger trigger)
{
InternalChildren = new Drawable[]
{
content = new Container
{
RelativeSizeAxes = Axes.Both
},
};
Trigger = trigger;
Trigger.OnActivate += Activate;