From a56e62a49c7f7a93ab29fc8ea92821fbe18ae46f Mon Sep 17 00:00:00 2001 From: A117870935 Date: Fri, 21 Apr 2023 12:52:34 +0530 Subject: [PATCH] Unnecessary code revert. Signed-off-by: Andy Scherzinger --- .../java/com/nextcloud/client/jobs/CalendarBackupWork.kt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/src/main/java/com/nextcloud/client/jobs/CalendarBackupWork.kt b/app/src/main/java/com/nextcloud/client/jobs/CalendarBackupWork.kt index ab1a394934..9636afa379 100644 --- a/app/src/main/java/com/nextcloud/client/jobs/CalendarBackupWork.kt +++ b/app/src/main/java/com/nextcloud/client/jobs/CalendarBackupWork.kt @@ -3,10 +3,8 @@ * Nextcloud Android client application * * @author Tobias Kaminsky - * @author TSI-mc * Copyright (C) 2021 Tobias Kaminsky * Copyright (C) 2021 Nextcloud GmbH - * Copyright (C) 2023 TSI-mc * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -31,7 +29,6 @@ import androidx.work.Worker import androidx.work.WorkerParameters import com.nextcloud.client.account.UserAccountManager import com.nextcloud.client.preferences.AppPreferences -import com.owncloud.android.R import com.owncloud.android.lib.common.utils.Log_OC import third_parties.sufficientlysecure.AndroidCalendar import third_parties.sufficientlysecure.SaveCalendar @@ -53,12 +50,6 @@ class CalendarBackupWork( } override fun doWork(): Result { - val showCalendarBackup = applicationContext.resources.getBoolean(R.bool.show_calendar_backup) - if (!showCalendarBackup) { - Log_OC.d(TAG, "Calendar backup is disabled.") - return Result.success() - } - val accountName = inputData.getString(ACCOUNT) ?: "" val optionalUser = accountManager.getUser(accountName) if (!optionalUser.isPresent || TextUtils.isEmpty(accountName)) { // no account provided