Skip to content

Commit 65c14db

Browse files
alperozturk96backportbot[bot]
authored andcommitted
remove public handleLocalBehaviour
Signed-off-by: alperozturk96 <alper_ozturk@proton.me>
1 parent 5393094 commit 65c14db

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

app/src/main/java/com/owncloud/android/operations/UploadFileOperation.java

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,27 +1262,6 @@ private RemoteOperationResult checkNameCollision(OCFile parentFile,
12621262
return null;
12631263
}
12641264

1265-
public void handleLocalBehaviour() {
1266-
if (user == null || mFile == null || mContext == null) {
1267-
Log_OC.d(TAG, "handleLocalBehaviour: user, file, or context is null.");
1268-
return;
1269-
}
1270-
1271-
final var client = getClient();
1272-
if (client == null) {
1273-
Log_OC.d(TAG, "handleLocalBehaviour: client is null");
1274-
return;
1275-
}
1276-
1277-
String expectedPath = FileStorageUtils.getDefaultSavePathFor(user.getAccountName(), mFile);
1278-
File expectedFile = new File(expectedPath);
1279-
File originalFile = new File(mOriginalStoragePath);
1280-
String temporalPath = FileStorageUtils.getInternalTemporalPath(user.getAccountName(), mContext) + mFile.getRemotePath();
1281-
File temporalFile = new File(temporalPath);
1282-
1283-
handleLocalBehaviour(temporalFile, expectedFile, originalFile, client);
1284-
}
1285-
12861265
private void deleteNonExistingFile(File file) {
12871266
if (file.exists()) {
12881267
return;

0 commit comments

Comments
 (0)