Commit 78282c1a authored by Viktor De Pasquale's avatar Viktor De Pasquale Committed by John Wu

Removed unused entry

parent fd4214cc
...@@ -35,11 +35,6 @@ open class DownloadService : RemoteFileService() { ...@@ -35,11 +35,6 @@ open class DownloadService : RemoteFileService() {
.getMimeTypeFromExtension(extension) .getMimeTypeFromExtension(extension)
.orEmpty() .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) { override fun onFinished(file: File, subject: DownloadSubject) = when (subject) {
is Magisk -> onFinishedInternal(file, subject) is Magisk -> onFinishedInternal(file, subject)
is Module -> onFinishedInternal(file, subject) is Module -> onFinishedInternal(file, subject)
......
...@@ -108,7 +108,6 @@ abstract class RemoteFileService : NotificationService() { ...@@ -108,7 +108,6 @@ abstract class RemoteFileService : NotificationService() {
var off = -1 var off = -1
var entry: ZipEntry? = zin.nextEntry var entry: ZipEntry? = zin.nextEntry
while (entry != null) { while (entry != null) {
Timber.i("Let's gooo (${entry.name})")
if (off < 0) { if (off < 0) {
off = entry.name.indexOf('/') + 1 off = entry.name.indexOf('/') + 1
} }
...@@ -167,8 +166,6 @@ abstract class RemoteFileService : NotificationService() { ...@@ -167,8 +166,6 @@ abstract class RemoteFileService : NotificationService() {
subject: DownloadSubject subject: DownloadSubject
): NotificationCompat.Builder ): NotificationCompat.Builder
protected abstract fun map(subject: DownloadSubject, file: File): File
companion object { companion object {
const val ARG_URL = "arg_url" const val ARG_URL = "arg_url"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment