Merge pull request #468 from veyndan/implode

Remove unused method implode(…)
This commit is contained in:
Josephine Lim 2017-03-24 19:16:30 +10:00 committed by GitHub
commit 511e663f9b

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);