From 6dfaedbaa6ef4032b1e2d9d7708f6cd141785198 Mon Sep 17 00:00:00 2001 From: Tobi823 Date: Sun, 2 Jun 2024 19:00:03 +0200 Subject: [PATCH] - cleanup --- .../de/marmaro/krt/ffupdater/background/AppUpdater.kt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ffupdater/src/main/java/de/marmaro/krt/ffupdater/background/AppUpdater.kt b/ffupdater/src/main/java/de/marmaro/krt/ffupdater/background/AppUpdater.kt index 3ad24623..65d8f73f 100644 --- a/ffupdater/src/main/java/de/marmaro/krt/ffupdater/background/AppUpdater.kt +++ b/ffupdater/src/main/java/de/marmaro/krt/ffupdater/background/AppUpdater.kt @@ -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 @@ -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()