Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 9e46b83

Browse files
abelgardepdavigonz
authored andcommitted
A little cleanup
1 parent 18b0abb commit 9e46b83

File tree

1 file changed

+1
-14
lines changed
  • owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/network

1 file changed

+1
-14
lines changed

owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/network/WebdavUtils.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import java.util.Date;
3535
import java.util.Locale;
3636

37+
import static com.owncloud.android.lib.common.OwnCloudClient.WEBDAV_FILES_PATH_4_0;
3738
import static com.owncloud.android.lib.common.OwnCloudClient.WEBDAV_PATH_4_0_AND_LATER;
3839

3940
public class WebdavUtils {
@@ -104,20 +105,6 @@ public static String getEtagFromResponse(HttpBaseMethod httpBaseMethod) {
104105
return result;
105106
}
106107

107-
public static String trimWebdavSuffix(String url) {
108-
if (url == null) {
109-
url = "";
110-
} else {
111-
if (url.endsWith("/")) {
112-
url = url.substring(0, url.length() - 1);
113-
}
114-
if (url.toLowerCase().endsWith(WEBDAV_PATH_4_0_AND_LATER)) {
115-
url = url.substring(0, url.length() - WEBDAV_PATH_4_0_AND_LATER.length());
116-
}
117-
}
118-
return url;
119-
}
120-
121108
public static String normalizeProtocolPrefix(String url, boolean isSslConn) {
122109
if (!url.toLowerCase().startsWith("http://") &&
123110
!url.toLowerCase().startsWith("https://")) {

0 commit comments

Comments
 (0)