瀏覽代碼

Merge pull request #5960 from nextcloud/unusedParameter

Unused function
Andy Scherzinger 5 年之前
父節點
當前提交
ef5df5376a

+ 1 - 1
scripts/analysis/findbugs-results.txt

@@ -1 +1 @@
-379
+376

+ 0 - 17
src/main/java/com/owncloud/android/authentication/AuthenticatorUrlUtils.java

@@ -21,11 +21,8 @@
 
 package com.owncloud.android.authentication;
 
-import android.content.Context;
 import android.text.TextUtils;
 
-import com.owncloud.android.lib.resources.status.OwnCloudVersion;
-
 import java.util.Locale;
 
 /**
@@ -40,20 +37,6 @@ public final class AuthenticatorUrlUtils {
     private AuthenticatorUrlUtils() {
     }
 
-    /**
-     * Returns the proper URL path to access the WebDAV interface of an ownCloud server,
-     * according to its version and the authorization method used.
-     *
-     * @param   version         Version of ownCloud server.
-     * @param   authTokenType   Authorization token type, matching some of the AUTH_TOKEN_TYPE_* constants in
-     *                          {@link AccountAuthenticator}.
-     * @return                  WebDAV path for given OC version and authorization method, null if OC version
-     *                          is unknown; versions prior to ownCloud 4 are not supported anymore
-     */
-    public static String getWebdavPath(OwnCloudVersion version, String authTokenType, Context context) {
-            return WEBDAV_PATH_4_0_AND_LATER;
-    }
-
     public static String normalizeUrlSuffix(String url) {
         String normalizedUrl = url;
         if (normalizedUrl.endsWith("/")) {