1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 01:52:55 +08:00

Remove redundant setter

This commit is contained in:
Dean Herbert 2019-12-25 14:55:05 +09:00
parent f84d98223f
commit 145ac8e0b5
2 changed files with 2 additions and 4 deletions

View File

@ -11,7 +11,7 @@ namespace osu.Game.Beatmaps.Formats
/// <summary>
/// Retrieves the list of combo colours for presentation only.
/// </summary>
IReadOnlyList<Color4> ComboColours { get; set; }
IReadOnlyList<Color4> ComboColours { get; }
/// <summary>
/// Adds combo colours to the list.

View File

@ -2,7 +2,6 @@
// See the LICENCE file in the repository root for full licence text.
using System.Collections.Generic;
using System.Linq;
using osu.Game.Beatmaps.Formats;
using osuTK.Graphics;
@ -28,7 +27,7 @@ namespace osu.Game.Skinning
new Color4(242, 24, 57, 255),
};
private List<Color4> comboColours = new List<Color4>();
private readonly List<Color4> comboColours = new List<Color4>();
public IReadOnlyList<Color4> ComboColours
{
@ -42,7 +41,6 @@ namespace osu.Game.Skinning
return null;
}
set => comboColours = value.ToList();
}
public void AddComboColours(params Color4[] colours) => comboColours.AddRange(colours);