Remove useless code
This commit is contained in:
1 parent
9899552e4b
commit
700ebdfee3
1 file changed
-14
@@ -17,13 +17,10 @@
|
||||
package com.hippo.ehviewer.client;
|
||||
|
||||
import android.support.annotation.NonNull;
|
||||
import android.util.Pair;
|
||||
import com.hippo.ehviewer.Settings;
|
||||
import com.hippo.network.UrlBuilder;
|
||||
import java.util.List;
|
||||
import java.util.ListIterator;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import okhttp3.HttpUrl;
|
||||
|
||||
public class EhUrl {
|
||||
@@ -58,8 +55,6 @@ public class EhUrl {
|
||||
private static final String URL_PREFIX_THUMB_E = "https://ehgt.org/t/";
|
||||
private static final String URL_PREFIX_THUMB_EX = "https://exhentai.org/t/";
|
||||
|
||||
public static final Pattern PATTERN_DETAIL_URL = Pattern.compile("(?:g|mpv)/(\\d+)/([0-9a-f]{10})");
|
||||
|
||||
public static String getGalleryDetailUrl(long gid, String token) {
|
||||
return getGalleryDetailUrl(gid, token, 0, false);
|
||||
}
|
||||
@@ -181,13 +176,4 @@ public class EhUrl {
|
||||
return originUrl;
|
||||
}
|
||||
}
|
||||
|
||||
public static Pair<Long, String> parseGalleryDetailUrl(String url) {
|
||||
Matcher matcher = PATTERN_DETAIL_URL.matcher(url);
|
||||
if (matcher.find()) {
|
||||
return new Pair<>(Long.parseLong(matcher.group(1)), matcher.group(2));
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user