Skip to content

Commit a0d2721

Browse files
committed
kill StringUtils.getHost function
1 parent fe0e9f8 commit a0d2721

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

WordPressUtils/src/main/java/org/wordpress/android/util/StringUtils.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -197,24 +197,6 @@ public static String getPhotonUrl(String imageUrl, int size) {
197197
return "http://i0.wp.com/" + imageUrl + "?w=" + size;
198198
}
199199

200-
public static String getHost(String url) {
201-
if (TextUtils.isEmpty(url)) {
202-
return "";
203-
}
204-
205-
int doubleslash = url.indexOf("//");
206-
if (doubleslash == -1) {
207-
doubleslash = 0;
208-
} else {
209-
doubleslash += 2;
210-
}
211-
212-
int end = url.indexOf('/', doubleslash);
213-
end = (end >= 0) ? end : url.length();
214-
215-
return url.substring(doubleslash, end);
216-
}
217-
218200
public static String replaceUnicodeSurrogateBlocksWithHTMLEntities(final String inputString) {
219201
final int length = inputString.length();
220202
StringBuilder out = new StringBuilder(); // Used to hold the output.

0 commit comments

Comments
 (0)