Skip to content

Commit

Permalink
- cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobi823 committed Jun 2, 2024
1 parent 65e6e79 commit 6dfaedb
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import de.marmaro.krt.ffupdater.installer.exceptions.InstallationFailedException
import de.marmaro.krt.ffupdater.installer.exceptions.UserInteractionIsRequiredException
import de.marmaro.krt.ffupdater.network.NetworkUtil
import de.marmaro.krt.ffupdater.network.exceptions.NetworkException
import de.marmaro.krt.ffupdater.network.file.CacheBehaviour.FORCE_NETWORK
import de.marmaro.krt.ffupdater.network.file.CacheBehaviour.USE_CACHE
import de.marmaro.krt.ffupdater.network.file.DownloadStatus
import de.marmaro.krt.ffupdater.network.file.FileDownloader
Expand Down Expand Up @@ -167,13 +166,6 @@ class AppUpdater(context: Context, workerParams: WorkerParameters) :
return success()
}

private suspend fun isDownloadServerAvailable(): OneTimeWorkMethodResult {
val url = getApp().findImpl().hostnameForInternetCheck
FileDownloader.downloadStringWithCache(url, FORCE_NETWORK, method = "HEAD")

return success()
}

private suspend fun downloadApp(installedAppStatus: InstalledAppStatus, onUpdate: (DownloadStatus) -> Unit) {
Log.i(LOG_TAG, "$LOGTAG Download update for ${installedAppStatus.app}.")
val appImpl = installedAppStatus.app.findImpl()
Expand Down

0 comments on commit 6dfaedb

Please sign in to comment.