From 78282c1a49d8ef122f1484e4b2b632de2c724fe7 Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Thu, 11 Jul 2019 18:49:30 +0200 Subject: [PATCH] Removed unused entry --- .../com/topjohnwu/magisk/model/download/DownloadService.kt | 5 ----- .../com/topjohnwu/magisk/model/download/RemoteFileService.kt | 3 --- 2 files changed, 8 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/model/download/DownloadService.kt b/app/src/main/java/com/topjohnwu/magisk/model/download/DownloadService.kt index c68bea1f6..a31e9cc2e 100644 --- a/app/src/main/java/com/topjohnwu/magisk/model/download/DownloadService.kt +++ b/app/src/main/java/com/topjohnwu/magisk/model/download/DownloadService.kt @@ -35,11 +35,6 @@ open class DownloadService : RemoteFileService() { .getMimeTypeFromExtension(extension) .orEmpty() - override fun map(subject: DownloadSubject, file: File): File = when (subject) { - is Module -> file // todo tbd - else -> file - } - override fun onFinished(file: File, subject: DownloadSubject) = when (subject) { is Magisk -> onFinishedInternal(file, subject) is Module -> onFinishedInternal(file, subject) diff --git a/app/src/main/java/com/topjohnwu/magisk/model/download/RemoteFileService.kt b/app/src/main/java/com/topjohnwu/magisk/model/download/RemoteFileService.kt index 29b792d9b..83265ee66 100644 --- a/app/src/main/java/com/topjohnwu/magisk/model/download/RemoteFileService.kt +++ b/app/src/main/java/com/topjohnwu/magisk/model/download/RemoteFileService.kt @@ -108,7 +108,6 @@ abstract class RemoteFileService : NotificationService() { var off = -1 var entry: ZipEntry? = zin.nextEntry while (entry != null) { - Timber.i("Let's gooo (${entry.name})") if (off < 0) { off = entry.name.indexOf('/') + 1 } @@ -167,8 +166,6 @@ abstract class RemoteFileService : NotificationService() { subject: DownloadSubject ): NotificationCompat.Builder - protected abstract fun map(subject: DownloadSubject, file: File): File - companion object { const val ARG_URL = "arg_url" }