mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Removed unneeded comments
This commit is contained in:
parent
3746ff540b
commit
35602ae668
1 changed files with 0 additions and 18 deletions
|
@ -79,24 +79,6 @@ public class RemoveFileOperation extends RemoteOperation {
|
|||
mDataStorageManager.removeFile(mFileToRemove, true, mDeleteLocalCopy);
|
||||
}
|
||||
|
||||
// try {
|
||||
// delete = new DeleteMethod(client.getBaseUri() + WebdavUtils.encodePath(mFileToRemove.getRemotePath()));
|
||||
// int status = client.executeMethod(delete, REMOVE_READ_TIMEOUT, REMOVE_CONNECTION_TIMEOUT);
|
||||
// if (delete.succeeded() || status == HttpStatus.SC_NOT_FOUND) {
|
||||
// mDataStorageManager.removeFile(mFileToRemove, true, mDeleteLocalCopy);
|
||||
// }
|
||||
// delete.getResponseBodyAsString(); // exhaust the response, although not interesting
|
||||
// result = new RemoteOperationResult((delete.succeeded() || status == HttpStatus.SC_NOT_FOUND), status, delete.getResponseHeaders());
|
||||
// Log_OC.i(TAG, "Remove " + mFileToRemove.getRemotePath() + ": " + result.getLogMessage());
|
||||
//
|
||||
// } catch (Exception e) {
|
||||
// result = new RemoteOperationResult(e);
|
||||
// Log_OC.e(TAG, "Remove " + mFileToRemove.getRemotePath() + ": " + result.getLogMessage(), e);
|
||||
//
|
||||
// } finally {
|
||||
// if (delete != null)
|
||||
// delete.releaseConnection();
|
||||
// }
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue