Remove unused VisualRepresentation

This commit is contained in:
Dean Herbert 2022-10-26 17:16:38 +09:00
parent 2deaae270c
commit 14a4fad6f1

View File

@ -2,14 +2,12 @@
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Bindables;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes; using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures; using osu.Framework.Graphics.Textures;
using osu.Framework.Utils; using osu.Framework.Utils;
using osu.Game.Rulesets.Catch.Objects;
using osu.Game.Rulesets.Catch.Skinning.Default; using osu.Game.Rulesets.Catch.Skinning.Default;
using osu.Game.Rulesets.Catch.UI; using osu.Game.Rulesets.Catch.UI;
using osuTK; using osuTK;
@ -18,8 +16,6 @@ namespace osu.Game.Rulesets.Catch.Skinning.Argon
{ {
internal class ArgonFruitPiece : CatchHitObjectPiece internal class ArgonFruitPiece : CatchHitObjectPiece
{ {
public readonly Bindable<FruitVisualRepresentation> VisualRepresentation = new Bindable<FruitVisualRepresentation>();
protected override Drawable HyperBorderPiece => hyperBorderPiece; protected override Drawable HyperBorderPiece => hyperBorderPiece;
private Drawable hyperBorderPiece = null!; private Drawable hyperBorderPiece = null!;
@ -91,11 +87,6 @@ namespace osu.Game.Rulesets.Catch.Skinning.Argon
{ {
base.LoadComplete(); base.LoadComplete();
IndexInBeatmap.BindValueChanged(index =>
{
VisualRepresentation.Value = Fruit.GetVisualRepresentation(index.NewValue);
}, true);
AccentColour.BindValueChanged(colour => AccentColour.BindValueChanged(colour =>
{ {
foreach (var sprite in layers) foreach (var sprite in layers)