This repository was archived by the owner on Mar 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
owncloudComLibrary/src/main/java/com/owncloud/android/lib/common/network Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 34
34
import java .util .Date ;
35
35
import java .util .Locale ;
36
36
37
+ import static com .owncloud .android .lib .common .OwnCloudClient .WEBDAV_FILES_PATH_4_0 ;
37
38
import static com .owncloud .android .lib .common .OwnCloudClient .WEBDAV_PATH_4_0_AND_LATER ;
38
39
39
40
public class WebdavUtils {
@@ -104,20 +105,6 @@ public static String getEtagFromResponse(HttpBaseMethod httpBaseMethod) {
104
105
return result ;
105
106
}
106
107
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
-
121
108
public static String normalizeProtocolPrefix (String url , boolean isSslConn ) {
122
109
if (!url .toLowerCase ().startsWith ("http://" ) &&
123
110
!url .toLowerCase ().startsWith ("https://" )) {
You can’t perform that action at this time.
0 commit comments