Clear redundant things

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2017-09-14 16:17:59 +02:00 committed by tobiaskaminsky
parent 933cac4957
commit bf777ef3b2
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -62,7 +62,6 @@ import com.owncloud.android.authentication.AccountUtils;
import com.owncloud.android.authentication.AuthenticatorActivity;
import com.owncloud.android.datamodel.ArbitraryDataProvider;
import com.owncloud.android.datamodel.PushConfigurationState;
import com.owncloud.android.datamodel.SyncedFolderProvider;
import com.owncloud.android.lib.common.UserInfo;
import com.owncloud.android.lib.common.operations.RemoteOperation;
import com.owncloud.android.lib.common.operations.RemoteOperationResult;
@ -408,10 +407,6 @@ public class UserInfoActivity extends FileActivity {
ContactsPreferenceActivity.cancelContactBackupJobForAccount(getActivity(), account);
ContentResolver contentResolver = getActivity().getContentResolver();
// delete all synced folder for an account
SyncedFolderProvider syncedFolderProvider = new SyncedFolderProvider(
contentResolver);
syncedFolderProvider.deleteSyncFoldersForAccount(account);
// disable daily backup
ArbitraryDataProvider arbitraryDataProvider = new ArbitraryDataProvider(
@ -421,7 +416,6 @@ public class UserInfoActivity extends FileActivity {
ContactsPreferenceActivity.PREFERENCE_CONTACTS_AUTOMATIC_BACKUP,
"false");
String arbitraryDataPushString;
if (!TextUtils.isEmpty(arbitraryDataPushString = arbitraryDataProvider.getValue(