Skip to content

Commit da43f16

Browse files
fix: remove unused osu.Game.Audio using in DrawableSlider.cs (IDE0005)
Agent-Logs-Url: https://github.com/winnerspiros/osu/sessions/7ba7b342-765f-428b-96e1-3925b8e2d9ab Co-authored-by: winnerspiros <1675249+winnerspiros@users.noreply.github.com>
1 parent 7bddedd commit da43f16

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

osu.Game.Rulesets.Osu/Objects/Drawables/DrawableSlider.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
using osu.Framework.Graphics;
1313
using osu.Framework.Graphics.Containers;
1414
using osu.Framework.Layout;
15-
using osu.Game.Audio;
1615
using osu.Game.Graphics.Containers;
1716
using osu.Game.Rulesets.Judgements;
1817
using osu.Game.Rulesets.Objects;
@@ -163,9 +162,6 @@ protected override void OnFree()
163162
protected override void LoadSamples()
164163
{
165164
// Note: base.LoadSamples() isn't called since the slider plays the tail's hitsounds for the time being.
166-
167-
// HitSampleInfo : ISampleInfo (reference type) — array covariance lets us cast directly,
168-
// avoiding a second array allocation from .Cast<ISampleInfo>().ToArray().
169165
Samples.Samples = HitObject.TailSamples.ToArray();
170166
slidingSample.Samples = HitObject.CreateSlidingSamples().ToArray();
171167
}

0 commit comments

Comments
 (0)