Replace old command parsing with new
[kaka/cakelight.git] / src / kaka / cakelight / mode / TwoColorNoiseMode.java
index 4046cbd..7e39705 100644 (file)
@@ -1,7 +1,6 @@
 package kaka.cakelight.mode;
 
 import kaka.cakelight.Color;
-import kaka.cakelight.Console;
 import kaka.cakelight.LedFrame;
 import kaka.cakelight.util.SimplexNoise3D;
 
@@ -9,26 +8,6 @@ public class TwoColorNoiseMode extends AmbientMode {
     private final Color primary, secondary;
     private SimplexNoise3D noise = new SimplexNoise3D(0);
 
-    public static Console.Command getCommand() {
-        return new Console.Command() {
-            @Override
-            public String[] getNames() {
-                return new String[] {"n", "noise"};
-            }
-
-            @Override
-            public void activate(Console console, String[] args) {
-                if (args.length == 2) { // col1 + col2
-                    console.getCakelight().setMode(new TwoColorNoiseMode(
-                            parseColor(args[0]),
-                            parseColor(args[1])
-                    ));
-                    output("setting two-color noise mode");
-                }
-            }
-        };
-    }
-
     public TwoColorNoiseMode(Color primary, Color secondary) {
         this.primary = primary;
         this.secondary = secondary;