Skip to content

Commit

Permalink
Remove unused method.
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianLettner committed Aug 24, 2015
1 parent dfad64c commit 3d4d001
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/dotless.Core/Parser/Tree/Color.cs
Original file line number Diff line number Diff line change
Expand Up @@ -561,29 +561,6 @@ public string GetKeyword(int[] rgb)
return null;
}

public static Color GetColorFromKeyword(string keyword)
{
int color;

if (keyword == "transparent")
{
return new Color(0, 0, 0, 0);
}

if (Html4Colors.TryGetValue(keyword, out color))
{
var b = color & 0xff;
color >>= 8;
var g = color & 0xff;
color >>= 8;
var r = color & 0xff;

return new Color(r, g, b);
}

return null;
}

/// <summary>
/// Returns in the IE ARGB format e.g ##FF001122 = rgba(0x00, 0x11, 0x22, 1)
/// </summary>
Expand Down

0 comments on commit 3d4d001

Please sign in to comment.