1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 23:12:56 +08:00

Remove unused Dimension specification from StatisticItem

This commit is contained in:
Dean Herbert 2023-06-01 14:25:18 +09:00
parent 55a3847036
commit dc595b83f1
2 changed files with 2 additions and 10 deletions

View File

@ -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
@ -26,11 +25,6 @@ namespace osu.Game.Screens.Ranking.Statistics
/// </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>
@ -42,13 +36,11 @@ namespace osu.Game.Screens.Ranking.Statistics
/// <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;
}
}
}

View File

@ -168,7 +168,7 @@ namespace osu.Game.Screens.Ranking.Statistics
Origin = Anchor.Centre,
});
dimensions.Add(col.Dimension ?? new Dimension());
dimensions.Add(new Dimension());
}
rows.Add(new GridContainer