mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 12:53:55 +01:00
Merge pull request #468 from veyndan/implode
Remove unused method implode(…)
This commit is contained in:
commit
511e663f9b
1 changed files with 0 additions and 14 deletions
|
|
@ -251,20 +251,6 @@ public class Utils {
|
|||
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) {
|
||||
String underscored = name.trim().replace(" ", "_");
|
||||
String uriStr = CommonsApplication.HOME_URL + urlEncode(underscored);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue