From f6fcd2b3b65841eb8288c40447e851336e5ad4b3 Mon Sep 17 00:00:00 2001 From: gedoor Date: Thu, 8 Apr 2021 14:39:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E6=95=88=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/help/BookHelp.kt | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/BookHelp.kt b/app/src/main/java/io/legado/app/help/BookHelp.kt index 69ea5ff42..3e6731912 100644 --- a/app/src/main/java/io/legado/app/help/BookHelp.kt +++ b/app/src/main/java/io/legado/app/help/BookHelp.kt @@ -77,31 +77,6 @@ object BookHelp { postEvent(EventBus.SAVE_CONTENT, bookChapter) } - @Suppress("unused") - fun saveFont(book: Book, bookChapter: BookChapter, font: ByteArray) { - FileUtils.createFileIfNotExist( - downloadDir, - cacheFolderName, - book.getFolderName(), - "font", - bookChapter.getFontName() - ).writeBytes(font) - } - - fun getFontPath(book: Book, bookChapter: BookChapter): String? { - val fontFile = FileUtils.getFile( - downloadDir, - cacheFolderName, - book.getFolderName(), - "font", - bookChapter.getFontName() - ) - if (fontFile.exists()) { - return fontFile.absolutePath - } - return null - } - suspend fun saveImage(book: Book, src: String) { while (downloadImages.contains(src)) { delay(100)