Skip to content

Commit

Permalink
kill StringUtils.getHost function
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme committed Dec 21, 2015
1 parent a5efa15 commit 5055b8a
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,24 +197,6 @@ public static String getPhotonUrl(String imageUrl, int size) {
return "http://i0.wp.com/" + imageUrl + "?w=" + size;
}

public static String getHost(String url) {
if (TextUtils.isEmpty(url)) {
return "";
}

int doubleslash = url.indexOf("//");
if (doubleslash == -1) {
doubleslash = 0;
} else {
doubleslash += 2;
}

int end = url.indexOf('/', doubleslash);
end = (end >= 0) ? end : url.length();

return url.substring(doubleslash, end);
}

public static String replaceUnicodeSurrogateBlocksWithHTMLEntities(final String inputString) {
final int length = inputString.length();
StringBuilder out = new StringBuilder(); // Used to hold the output.
Expand Down

0 comments on commit 5055b8a

Please sign in to comment.