From e0abed25903714bbea8e47ad4da4731ab4f698bd Mon Sep 17 00:00:00 2001 From: Alexis DRAI Date: Wed, 28 Sep 2022 19:23:27 +0200 Subject: [PATCH] :fire: Remove ption to use shorter hexcodes for colors --- Sources/Model/Dice/Faces/ColorDieFace.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Sources/Model/Dice/Faces/ColorDieFace.cs b/Sources/Model/Dice/Faces/ColorDieFace.cs index fc7f7a0..77b5d3c 100644 --- a/Sources/Model/Dice/Faces/ColorDieFace.cs +++ b/Sources/Model/Dice/Faces/ColorDieFace.cs @@ -22,15 +22,6 @@ namespace Model.Dice.Faces hexValueString = hexValueString[1..]; } - // if style is "f0b", this constructor can develop it to "ff00bb" before doing the job - if (hexValueString.Length == 3) - { - foreach (char ch in hexValueString) - { - // replace one instance of the char by two instances of it - hexValueString = hexValueString.Replace(new string(ch, 1), new string(ch, 2)); - } - } int result = int.Parse(hexValueString, System.Globalization.NumberStyles.HexNumber); if (result < 0) Value = 0;