JAL-3368 removed parsing web colours (now on a separate branch)
[jalview.git] / src / jalview / util / Platform.java
index 11f7988..121ac1b 100644 (file)
@@ -720,57 +720,6 @@ public class Platform
   }
 
   /**
-   * @param c
-   */
-  public static Color getColorFromName(String name)
-  {
-    if (name == null)
-    {
-      return null;
-    }
-    /**
-     * @j2sNative
-     * 
-     *            return swingjs.JSUtil.getColorFromName$S(name);
-     */
-    {
-      // or make a static map; or use reflection on the field name
-      switch (name.toLowerCase())
-      {
-      case "black":
-        return Color.black;
-      case "blue":
-        return Color.blue;
-      case "cyan":
-        return Color.cyan;
-      case "darkgray":
-        return Color.darkGray;
-      case "gray":
-        return Color.gray;
-      case "green":
-        return Color.green;
-      case "lightgray":
-        return Color.lightGray;
-      case "magenta":
-        return Color.magenta;
-      case "orange":
-        return Color.orange;
-      case "pink":
-        return Color.pink;
-      case "red":
-        return Color.red;
-      case "white":
-        return Color.white;
-      case "yellow":
-        return Color.yellow;
-      default:
-        return null;
-      }
-
-    }
-  }
-
-  /**
    * Initialize Java debug logging. A representative sample -- adapt as desired.
    */
   public static void startJavaLogging()