Remove unused method implode(…)

This commit is contained in:
veyndan 2017-03-24 04:30:08 +00:00
parent ef9799ec07
commit 06aeede864

View file

@ -251,20 +251,6 @@ public class Utils {
throw new RuntimeException("Unrecognized license value"); throw new RuntimeException("Unrecognized license value");
} }
public static String implode(String glue, Iterable<String> pieces) {
StringBuffer buffer = new StringBuffer();
boolean first = true;
for (String piece : pieces) {
if (first) {
first = false;
} else {
buffer.append(glue);
}
buffer.append(pieces);
}
return buffer.toString();
}
public static Uri uriForWikiPage(String name) { public static Uri uriForWikiPage(String name) {
String underscored = name.trim().replace(" ", "_"); String underscored = name.trim().replace(" ", "_");
String uriStr = CommonsApplication.HOME_URL + urlEncode(underscored); String uriStr = CommonsApplication.HOME_URL + urlEncode(underscored);