diff --git a/src/bin/Redstone.hx b/src/bin/Redstone.hx index 23d7f71..c5c32da 100644 --- a/src/bin/Redstone.hx +++ b/src/bin/Redstone.hx @@ -15,7 +15,7 @@ class Redstone extends CLIBase { public function invoke(handle:TermHandle):Future { var subcommand = handle.args[0]; - var side:Null = getSide(handle.args[1]); + var side:Null = handle.args[1]; if (side == null) { handle.writeLn("Invalid side"); return Future.sync(false); @@ -36,23 +36,4 @@ class Redstone extends CLIBase { return Future.sync(true); } - - private function getSide(side:String):Null { - switch (side) { - case "top": - return Side.Top; - case "bottom": - return Side.Bottom; - case "left": - return Side.Left; - case "right": - return Side.Right; - case "front": - return Side.Front; - case "back": - return Side.Back; - default: - return null; - } - } }