Remove unused props from `RollColumn` and `RollColumns`

This commit is contained in:
James Groom 2024-03-20 19:46:56 +00:00 committed by GitHub
parent c5a478a28a
commit 41cae2dd22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 15 deletions

View File

@ -88,11 +88,7 @@ namespace BizHawk.Client.EmuHawk
{
RollColumn col = visibleColumns[j];
int height = CellHeight;
if (col.Rotatable && col.RotatedHeight != null)
{
height = Math.Max(height, col.RotatedHeight.Value);
}
else if (col.Rotatable)
if (col.Rotatable)
{
int strOffsetX = 0;
int strOffsetY = 0;

View File

@ -2,7 +2,6 @@
{
public class RollColumn
{
public string Group { get; set; }
public int Width { get; set; }
public int Left { get; set; }
public int Right { get; set; }
@ -23,11 +22,6 @@
/// </summary>
public bool Rotatable { get; set; }
/// <summary>
/// If drawn rotated, specifies the desired height, or null to auto-size
/// </summary>
public int? RotatedHeight { get; set; }
/// <summary>
/// Sets the desired width as appropriate for a display with no scaling. If display
/// scaling is enabled, the actual column width will be scaled accordingly.

View File

@ -106,9 +106,5 @@ namespace BizHawk.Client.EmuHawk
base.Clear();
ColumnsChanged();
}
public IEnumerable<string> Groups => this
.Select(x => x.Group)
.Distinct();
}
}