mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 02:25:28 +00:00
Removed unused entry
This commit is contained in:
parent
fd4214ccf3
commit
78282c1a49
@ -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)
|
||||
|
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user