Remove an unused method
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 14 Jun 2010 21:23:49 +0000 (21:23 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 14 Jun 2010 21:23:49 +0000 (21:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@954651 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/el/lang/ELSupport.java

index 8728f25..ba25253 100644 (file)
@@ -414,25 +414,6 @@ public class ELSupport {
         }
     }
 
-    public final static void checkType(final Object obj, final Class<?> type)
-        throws ELException {
-        if (String.class.equals(type)) {
-            coerceToString(obj);
-        }
-        if (ELArithmetic.isNumberType(type)) {
-            coerceToNumber(obj, type);
-        }
-        if (Character.class.equals(type) || Character.TYPE == type) {
-            coerceToCharacter(obj);
-        }
-        if (Boolean.class.equals(type) || Boolean.TYPE == type) {
-            coerceToBoolean(obj);
-        }
-        if (type.isEnum()) {
-            coerceToEnum(obj, type);
-        }
-    }
-
     public final static Object coerceToType(final Object obj,
             final Class<?> type) throws ELException {
         if (type == null || Object.class.equals(type) ||