From 65f4b4329bb02385be9213af45c78f94e57ca895 Mon Sep 17 00:00:00 2001 From: Max G Date: Thu, 31 Jan 2019 04:58:10 -0600 Subject: [PATCH] Removed debug code from static BrickColor initializer --- DataTypes/BrickColor.cs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) 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 +}