1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-09 18:44:51 +08:00

Remove no longer required field

This commit is contained in:
Bartłomiej Dach
2020-09-28 16:59:33 +02:00
Unverified
parent f6f267a43a
commit 2fb9a5d734
@@ -15,7 +15,6 @@ namespace osu.Game.Rulesets.Taiko.Skinning
private readonly Drawable sprite;
private readonly Drawable strongSprite;
private DrawableHit hit;
private DrawableStrongNestedHit nestedStrongHit;
private bool switchedToStrongSprite;
@@ -58,11 +57,8 @@ namespace osu.Game.Rulesets.Taiko.Skinning
}));
}
if (judgedObject is DrawableHit h)
{
hit = h;
if (judgedObject is DrawableHit hit)
nestedStrongHit = hit.NestedHitObjects.SingleOrDefault() as DrawableStrongNestedHit;
}
}
protected override void LoadComplete()
@@ -95,7 +91,7 @@ namespace osu.Game.Rulesets.Taiko.Skinning
private bool shouldSwitchToStrongSprite()
{
if (hit == null || nestedStrongHit == null || strongSprite == null)
if (nestedStrongHit == null || strongSprite == null)
return false;
return nestedStrongHit.IsHit;