diff --git a/DataTypes/BrickColor.cs b/DataTypes/BrickColor.cs index 8d8cd25..42caf19 100644 --- a/DataTypes/BrickColor.cs +++ b/DataTypes/BrickColor.cs @@ -40,20 +40,6 @@ namespace Roblox.DataTypes static BrickColor() { - Dictionary bcSum = new Dictionary(); - - foreach (BrickColor color in BrickColors.ColorMap) - { - if (bcSum.ContainsKey(color.Name)) - { - bcSum[color.Name]++; - } - else - { - bcSum.Add(color.Name, 1); - } - } - ByNumber = BrickColors.ColorMap.ToDictionary(brickColor => brickColor.Number); ByPalette = BrickColors.PaletteMap.Select(number => ByNumber[number]).ToList(); } @@ -132,4 +118,4 @@ namespace Roblox.DataTypes public static BrickColor Green() => FromName("Dark green"); public static BrickColor Blue() => FromName("Bright blue"); } -} \ No newline at end of file +}