From ac884f3050a78ed87978697312f961a448e7b0db Mon Sep 17 00:00:00 2001 From: Ryan Couture Date: Mon, 17 Jun 2019 14:38:57 -0400 Subject: [PATCH] constants: remove redundant code (fixes #316) (#319) --- .../java/io/treehouses/remote/Constants.java | 28 +------------------ 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/app/src/main/java/io/treehouses/remote/Constants.java b/app/src/main/java/io/treehouses/remote/Constants.java index 7f658ebcc..f5d21452f 100644 --- a/app/src/main/java/io/treehouses/remote/Constants.java +++ b/app/src/main/java/io/treehouses/remote/Constants.java @@ -39,7 +39,7 @@ * Defines several constants used between {@link BluetoothChatService} and the UI. */ public class Constants { - + static String value = ""; private static ArrayList groups = new ArrayList<>(); @@ -77,31 +77,5 @@ public class Constants { terminalList.add("Rename Hostname"); terminalList.add("Expand File System"); } - - public static void setGroups() { - if (groups.size() > 0) { - groups = null; - groups = new ArrayList<>(); - } - groups.add("Ethernet: Automatic"); - groups.add("WiFi"); - groups.add("Hotspot"); - groups.add("Bridge"); - groups.add("Reset"); - groups.add("Reboot"); - groups.add("Network Mode: "); - } - public static ArrayList getGroups() { - return groups; - } - - public static ArrayList changeGroup(String readMessage) { - groups.remove(6); - Log.e("TAG", "Group size after remove: " + getGroups().size()); - groups.add("Network Mode: " + readMessage); - Log.e("TAG", "Group size after add: " + getGroups().size()); - return groups; - } - }