Removed unused entry

This commit is contained in:
Viktor De Pasquale 2019-07-11 18:49:30 +02:00 committed by John Wu
parent fd4214ccf3
commit 78282c1a49
2 changed files with 0 additions and 8 deletions

View File

@ -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)

View File

@ -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() {
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"
} }