mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Remove unused method implode(…)
This commit is contained in:
parent
ef9799ec07
commit
06aeede864
1 changed files with 0 additions and 14 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue