From ae8d0cf24eb3823a9fce966349a5e4df0e094179 Mon Sep 17 00:00:00 2001 From: Celeter <48249130+Celeter@users.noreply.github.com> Date: Thu, 28 Jan 2021 18:18:35 +0800 Subject: [PATCH 1/2] Update JsExtensions.kt --- app/src/main/java/io/legado/app/help/JsExtensions.kt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/JsExtensions.kt b/app/src/main/java/io/legado/app/help/JsExtensions.kt index 7a02036c5..c547ac579 100644 --- a/app/src/main/java/io/legado/app/help/JsExtensions.kt +++ b/app/src/main/java/io/legado/app/help/JsExtensions.kt @@ -18,7 +18,6 @@ import rxhttp.wrapper.param.RxHttp import rxhttp.wrapper.param.toByteArray import java.io.File import java.net.URLEncoder -import java.text.DateFormat import java.util.* @Keep @@ -209,15 +208,6 @@ interface JsExtensions { return dateFormat.format(Date(time)) } - fun timeFormat(time: String): String { - val date = DateFormat.getDateTimeInstance().parse(time) - return if (date == null) { - "" - } else { - dateFormat.format(date) - } - } - /** * utf8编码转gbk编码 */ From 58686928e1d2f7faf973567fa2f2e9509e23226a Mon Sep 17 00:00:00 2001 From: Celeter <48249130+Celeter@users.noreply.github.com> Date: Thu, 28 Jan 2021 19:21:53 +0800 Subject: [PATCH 2/2] Update JsExtensions.kt --- app/src/main/java/io/legado/app/help/JsExtensions.kt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/JsExtensions.kt b/app/src/main/java/io/legado/app/help/JsExtensions.kt index c547ac579..bef4d0e4a 100644 --- a/app/src/main/java/io/legado/app/help/JsExtensions.kt +++ b/app/src/main/java/io/legado/app/help/JsExtensions.kt @@ -113,13 +113,6 @@ interface JsExtensions { return contents.toString() } - /** - * js实现文件夹/文件的删除 - */ - fun deleteFolder(path: String) { - FileUtils.deleteFile(path) - } - /** * js实现重定向拦截,网络访问get */