Skip to content

Commit

Permalink
Remove unused Dimension specification from StatisticItem
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jun 1, 2023
1 parent 55a3847 commit dc595b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions osu.Game/Screens/Ranking/Statistics/StatisticItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System;
using JetBrains.Annotations;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Localisation;

namespace osu.Game.Screens.Ranking.Statistics
Expand All @@ -26,11 +25,6 @@ public class StatisticItem
/// </summary>
public readonly Func<Drawable> CreateContent;

/// <summary>
/// The <see cref="Dimension"/> of this row. This can be thought of as the column dimension of an encompassing <see cref="GridContainer"/>.
/// </summary>
public readonly Dimension Dimension;

/// <summary>
/// Whether this item requires hit events. If true, <see cref="CreateContent"/> will not be called if no hit events are available.
/// </summary>
Expand All @@ -42,13 +36,11 @@ public class StatisticItem
/// <param name="name">The name of the item. Can be <see langword="null"/> to hide the item header.</param>
/// <param name="createContent">A function returning the <see cref="Drawable"/> content to be displayed.</param>
/// <param name="requiresHitEvents">Whether this item requires hit events. If true, <see cref="CreateContent"/> will not be called if no hit events are available.</param>
/// <param name="dimension">The <see cref="Dimension"/> of this item. This can be thought of as the column dimension of an encompassing <see cref="GridContainer"/>.</param>
public StatisticItem(LocalisableString name, [NotNull] Func<Drawable> createContent, bool requiresHitEvents = false, [CanBeNull] Dimension dimension = null)
public StatisticItem(LocalisableString name, [NotNull] Func<Drawable> createContent, bool requiresHitEvents = false)
{
Name = name;
RequiresHitEvents = requiresHitEvents;
CreateContent = createContent;
Dimension = dimension;
}
}
}
2 changes: 1 addition & 1 deletion osu.Game/Screens/Ranking/Statistics/StatisticsPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private void populateStatistics(ValueChangedEvent<ScoreInfo> score)
Origin = Anchor.Centre,
});
dimensions.Add(col.Dimension ?? new Dimension());
dimensions.Add(new Dimension());
}
rows.Add(new GridContainer
Expand Down

0 comments on commit dc595b8

Please sign in to comment.