Skip to content

Commit

Permalink
Remove unused params
Browse files Browse the repository at this point in the history
  • Loading branch information
smoogipoo committed Nov 11, 2024
1 parent 7206e97 commit 8c68db0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions osu.Game/Rulesets/Objects/Legacy/ConvertHitObjectParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public override HitObject Parse(string text)
{
double duration = Math.Max(0, Parsing.ParseDouble(split[5]) + offset - startTime);

result = createSpinner(new Vector2(512, 384) / 2, combo, comboOffset, duration);
result = createSpinner(new Vector2(512, 384) / 2, combo, duration);

if (split.Length > 6)
readCustomSampleBanks(split[6], bankInfo);
Expand All @@ -174,7 +174,7 @@ public override HitObject Parse(string text)
readCustomSampleBanks(string.Join(':', ss.Skip(1)), bankInfo);
}

result = createHold(pos, combo, comboOffset, endTime + offset - startTime);
result = createHold(pos, endTime + offset - startTime);
}

if (result == null)
Expand Down Expand Up @@ -489,10 +489,9 @@ private ConvertHitObject createSlider(Vector2 position, bool newCombo, int combo
/// </summary>
/// <param name="position">The position of the hit object.</param>
/// <param name="newCombo">Whether the hit object creates a new combo.</param>
/// <param name="comboOffset">When starting a new combo, the offset of the new combo relative to the current one.</param>
/// <param name="duration">The spinner duration.</param>
/// <returns>The hit object.</returns>
private ConvertHitObject createSpinner(Vector2 position, bool newCombo, int comboOffset, double duration)
private ConvertHitObject createSpinner(Vector2 position, bool newCombo, double duration)
{
return lastObject = new ConvertSpinner
{
Expand All @@ -507,10 +506,8 @@ private ConvertHitObject createSpinner(Vector2 position, bool newCombo, int comb
/// Creates a legacy Hold-type hit object.
/// </summary>
/// <param name="position">The position of the hit object.</param>
/// <param name="newCombo">Whether the hit object creates a new combo.</param>
/// <param name="comboOffset">When starting a new combo, the offset of the new combo relative to the current one.</param>
/// <param name="duration">The hold duration.</param>
private ConvertHitObject createHold(Vector2 position, bool newCombo, int comboOffset, double duration)
private ConvertHitObject createHold(Vector2 position, double duration)
{
return lastObject = new ConvertHold
{
Expand Down

0 comments on commit 8c68db0

Please sign in to comment.