X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Futil%2FColorUtils.java;h=4305f5995ad30ae3f07a128fe8e35aa365e5c3bf;hb=4898f0ae429e0c61ddba72ca46be89b34bb4df8b;hp=c1feeee74cc910671e1ce1b4e395da11e41aa4d3;hpb=b75c77d2699b971e7b44a46d52b5696fee3efd31;p=jalview.git diff --git a/src/jalview/util/ColorUtils.java b/src/jalview/util/ColorUtils.java index c1feeee..4305f59 100644 --- a/src/jalview/util/ColorUtils.java +++ b/src/jalview/util/ColorUtils.java @@ -219,7 +219,7 @@ public class ColorUtils colour = colour.trim(); Color col = null; - if (colour.length() == 6 && StringUtils.isHexString(colour)) + if (StringUtils.isHexString(colour)) { try { @@ -255,10 +255,6 @@ public class ColorUtils return col; } - - public static boolean couldBeHexColor(String n) { - return (n.length() > 0 && "abcdefABCDEF".indexOf(n.charAt(0)) >= 0); - } /** * Constructs a colour from a text string. The hashcode of the whole string is