Merge branch 'feature/JAL-3690_callback-based-web-services' into alpha/JAL-3066_Jalvi...
[jalview.git] / src / jalview / util / ColorUtils.java
index c1feeee..4305f59 100644 (file)
@@ -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