From 916831743e9f7a03d15ef8e5223fd169908f2226 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Fri, 27 Jan 2023 13:39:20 +0100 Subject: [PATCH] removed get side in redstone --- src/bin/Redstone.hx | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) 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; - } - } }