From b04a3144784e2446cf859ab555091c818bebc096 Mon Sep 17 00:00:00 2001 From: davigonz Date: Wed, 5 Feb 2020 08:49:24 +0100 Subject: [PATCH] Remove unnecessary method --- .../java/com/owncloud/android/lib/common/OwnCloudClient.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/OwnCloudClient.java b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/OwnCloudClient.java index 6f5bca83..835f50e6 100644 --- a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/OwnCloudClient.java +++ b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/OwnCloudClient.java @@ -104,7 +104,6 @@ public class OwnCloudClient extends HttpClient { setRequestId(method); status = method.execute(); - checkFirstRedirection(method); if (mFollowRedirects) { status = followRedirection(method).getLastStatus(); @@ -119,10 +118,6 @@ public class OwnCloudClient extends HttpClient { return status; } - private void checkFirstRedirection(HttpBaseMethod method) { - final String location = method.getResponseHeader(HttpConstants.LOCATION_HEADER_LOWER); - } - private int executeRedirectedHttpMethod(HttpBaseMethod method) throws Exception { boolean repeatWithFreshCredentials; int repeatCounter = 0;