From 31c8ffbf0b4c1b17cb447741eaba8a18a5d89143 Mon Sep 17 00:00:00 2001 From: juayhee Date: Fri, 18 Feb 2022 16:00:53 +0800 Subject: [PATCH] Delete dead code --- src/main/java/duke/Duke.java | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/src/main/java/duke/Duke.java b/src/main/java/duke/Duke.java index 9ee4f36ef3..d32d552b08 100644 --- a/src/main/java/duke/Duke.java +++ b/src/main/java/duke/Duke.java @@ -43,13 +43,7 @@ public static void main() { } } - /** - * Checks if input is "bye" - */ - private boolean isBye(String input) { - return (input.equals("bye")); - } /** * Formats a single line with a new line @@ -62,27 +56,4 @@ public static String newLine(String input) { return output; } - /** - * Formats a single line with the specified number of indentations - * - * @param input Input string - * @param indents Number of indents to add - * @return String with specified number of indents - */ - public static String indent(String input, int indents) { - String indent = ""; - String output = ""; - - // Adding the appropriate number of indents - for (int i = 0; i < indents; i++) { - indent += "\t"; - } - - // Forming the final string - output = indent + input; - - return output; - - - } }