Reduce visibility (thanks Sebb)
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 14 Nov 2009 13:46:43 +0000 (13:46 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sat, 14 Nov 2009 13:46:43 +0000 (13:46 +0000)
Remove unused code

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@836177 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/tomcat/util/http/CookieSupport.java

index 2325172..e6e5798 100644 (file)
@@ -65,16 +65,16 @@ public final class CookieSupport {
      * spec, these are comma, semi-colon and white-space. The HTTP spec
      * definition of linear white space is [CRLF] 1*( SP | HT )
      */
-    public static final char[] V0_SEPARATORS = {',', ';', ' ', '\t'};
-    public static final boolean[] V0_SEPARATOR_FLAGS = new boolean[128];
+    private static final char[] V0_SEPARATORS = {',', ';', ' ', '\t'};
+    private static final boolean[] V0_SEPARATOR_FLAGS = new boolean[128];
     
     /**
      * The list of separators that apply to version 1 cookies. This may or may
      * not include '/' depending on the setting of
      * {@link #FWD_SLASH_IS_SEPARATOR}.
      */
-    public static final char[] HTTP_SEPARATORS;
-    public static final boolean[] HTTP_SEPARATOR_FLAGS = new boolean[128];
+    private static final char[] HTTP_SEPARATORS;
+    private static final boolean[] HTTP_SEPARATOR_FLAGS = new boolean[128];
     
     static {
         STRICT_SERVLET_COMPLIANCE = Boolean.valueOf(System.getProperty(
@@ -208,20 +208,6 @@ public final class CookieSupport {
         return false;
     }
 
-    public static boolean containsCTL(String value) {
-        if (value==null) return false;
-        int len = value.length();
-        for (int i = 0; i < len; i++) {
-            char c = value.charAt(i);
-            if (c < 0x20 || c >= 0x7f) {
-                if (c == 0x09)
-                    continue; //allow horizontal tabs
-                return true;
-            }
-        }
-        return false;
-    }
-
     public static boolean alreadyQuoted (String value) {
         if (value==null || value.length() < 2) return false;
         return (value.charAt(0)=='\"' && value.charAt(value.length()-1)=='\"');