From 3b066485e38c8792a81df671d75a0d204132aae6 Mon Sep 17 00:00:00 2001 From: LamGC Date: Wed, 29 Jul 2020 03:20:58 +0800 Subject: [PATCH] =?UTF-8?q?[Delete]=20=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E7=9A=84`getSearchBody(String,=20...)`=E6=96=B9=E6=B3=95;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Delete] CacheStoreCentral 移除无用的方法; --- .../cgj/bot/cache/CacheStoreCentral.java | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/src/main/java/net/lamgc/cgj/bot/cache/CacheStoreCentral.java b/src/main/java/net/lamgc/cgj/bot/cache/CacheStoreCentral.java index b263358..85a2f75 100644 --- a/src/main/java/net/lamgc/cgj/bot/cache/CacheStoreCentral.java +++ b/src/main/java/net/lamgc/cgj/bot/cache/CacheStoreCentral.java @@ -14,7 +14,6 @@ import net.lamgc.cgj.pixiv.PixivSearchLinkBuilder; import net.lamgc.cgj.pixiv.PixivURL; import net.lamgc.cgj.util.Locker; import net.lamgc.cgj.util.LockerMap; -import net.lamgc.cgj.util.PixivUtils; import net.lamgc.cgj.util.URLs; import net.lamgc.utils.encrypt.MessageDigestUtils; import net.lz1998.cq.utils.CQCode; @@ -406,30 +405,6 @@ public final class CacheStoreCentral { return result; } - /** - * 获取搜索结果 - * @param content 搜索内容 - * @param type 类型 - * @param area 范围 - * @param includeKeywords 包含关键词 - * @param excludeKeywords 排除关键词 - * @param contentOption 内容类型 - * @return 返回完整搜索结果 - * @throws IOException 当请求发生异常, 或接口返回异常信息时抛出. - */ - public JsonObject getSearchBody( - String content, - String type, - String area, - String includeKeywords, - String excludeKeywords, - String contentOption, - int pageIndex - ) throws IOException { - return getSearchBody(PixivUtils.buildSearchLinkBuilderFromString(content, type, area, - includeKeywords, excludeKeywords, contentOption, pageIndex)); - } - /** * 获取搜索结果 * @param searchBuilder 需要执行搜索的搜索链接构造器