From dbe32b9ddd113586ee5c4275b90e819e5d61cd9b Mon Sep 17 00:00:00 2001 From: remm Date: Fri, 31 May 2024 10:49:16 +0200 Subject: [PATCH] Drop unused methods --- .../authenticator/DigestAuthenticator.java | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/java/org/apache/catalina/authenticator/DigestAuthenticator.java b/java/org/apache/catalina/authenticator/DigestAuthenticator.java index 78f072c685e1..0ce23324e98c 100644 --- a/java/org/apache/catalina/authenticator/DigestAuthenticator.java +++ b/java/org/apache/catalina/authenticator/DigestAuthenticator.java @@ -317,40 +317,6 @@ protected String getAuthMethod() { // ------------------------------------------------------ Protected Methods - /** - * Removes the quotes on a string. RFC2617 states quotes are optional for all parameters except realm. - * - * @param quotedString The quoted string - * @param quotesRequired true if quotes were required - * - * @return The unquoted string - * @deprecated This will be removed in Tomcat 11 onwards. Unused. - */ - @Deprecated - protected static String removeQuotes(String quotedString, boolean quotesRequired) { - // support both quoted and non-quoted - if (quotedString.length() > 0 && quotedString.charAt(0) != '"' && !quotesRequired) { - return quotedString; - } else if (quotedString.length() > 2) { - return quotedString.substring(1, quotedString.length() - 1); - } else { - return ""; - } - } - - /** - * Removes the quotes on a string. - * - * @param quotedString The quoted string - * - * @return The unquoted string - * @deprecated This will be removed in Tomcat 11 onwards. Unused. - */ - @Deprecated - protected static String removeQuotes(String quotedString) { - return removeQuotes(quotedString, false); - } - /** * Generate a unique token. The token is generated according to the following pattern. NOnceToken = Base64 ( * NONCE_DIGEST ( client-IP ":" time-stamp ":" private-key ) ).