diff --git a/chunky/src/java/se/llbit/chunky/main/CommandLineOptions.java b/chunky/src/java/se/llbit/chunky/main/CommandLineOptions.java index 8a4cc7f1b..693216a1e 100644 --- a/chunky/src/java/se/llbit/chunky/main/CommandLineOptions.java +++ b/chunky/src/java/se/llbit/chunky/main/CommandLineOptions.java @@ -33,7 +33,6 @@ import se.llbit.json.PrettyPrinter; import se.llbit.log.Log; import se.llbit.util.mojangapi.MojangApi; -import se.llbit.util.StringUtil; import se.llbit.util.TaskTracker; import java.io.ByteArrayInputStream; @@ -86,7 +85,7 @@ enum Mode { /** * This is the usage output generated for the --help flag. */ - private static final String USAGE = StringUtil + private static final String USAGE = String .join("\n", "Usage: mapLoader [OPTIONS] [WORLD DIRECTORY]", "Options:", " -texture use FILE as the texture pack (must be a Zip file)", " -textures use FILES as the texture packs (must be Zip files), ", diff --git a/chunky/src/java/se/llbit/util/StringUtil.java b/chunky/src/java/se/llbit/util/StringUtil.java deleted file mode 100644 index 33d39e388..000000000 --- a/chunky/src/java/se/llbit/util/StringUtil.java +++ /dev/null @@ -1,33 +0,0 @@ -/* Copyright (c) 2015 Jesper Öqvist - * - * This file is part of Chunky. - * - * Chunky is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Chunky is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * You should have received a copy of the GNU General Public License - * along with Chunky. If not, see . - */ -package se.llbit.util; - -public abstract class StringUtil { - /** - * Join the string arguments using a separator string. - */ - public static String join(String separator, String... strings) { - StringBuilder buf = new StringBuilder(); - for (int i = 0; i < strings.length; ++i) { - if (i > 0) { - buf.append(separator); - } - buf.append(strings[i]); - } - return buf.toString(); - } -}