From 146e7456134d0de6febb92087122b7ee1b6464b8 Mon Sep 17 00:00:00 2001 From: Sandeep Gupta Date: Fri, 2 Sep 2016 10:46:08 +0530 Subject: [PATCH] Removing unused code - this has been replaced by IndentedStringWriter --- .../sangupta/outline/help/HelpFormatter.java | 49 ------------------- 1 file changed, 49 deletions(-) delete mode 100644 src/main/java/com/sangupta/outline/help/HelpFormatter.java diff --git a/src/main/java/com/sangupta/outline/help/HelpFormatter.java b/src/main/java/com/sangupta/outline/help/HelpFormatter.java deleted file mode 100644 index b133a9e..0000000 --- a/src/main/java/com/sangupta/outline/help/HelpFormatter.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * - * outline - command line argument parser - * Copyright (c) 2015-2016, Sandeep Gupta - * - * http://sangupta.com/projects/outline - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -package com.sangupta.outline.help; - -import java.util.List; - -import com.sangupta.jerry.util.AssertUtils; -import com.sangupta.jerry.util.StringUtils; - -public class HelpFormatter { - - public static String format(List helpLines) { - if(AssertUtils.isEmpty(helpLines)) { - return StringUtils.EMPTY_STRING; - } - - StringBuilder builder = new StringBuilder(256 * helpLines.size()); - - for(String line : helpLines) { - if(line != null) { - builder.append(line); - } - - builder.append(StringUtils.SYSTEM_NEW_LINE); - } - - return builder.toString(); - } - -}