src/share/classes/com/sun/tools/javac/code/Type.java

changeset 154
6508d7e812e1
parent 113
eff38cc97183
child 288
d402db1005ad
     1.1 --- a/src/share/classes/com/sun/tools/javac/code/Type.java	Mon Oct 20 13:42:45 2008 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Type.java	Thu Oct 23 17:59:16 2008 +0100
     1.3 @@ -360,17 +360,6 @@
     1.4      public boolean isUnbound() { return false; }
     1.5      public Type withTypeVar(Type t) { return this; }
     1.6  
     1.7 -    public static List<Type> removeBounds(List<Type> ts) {
     1.8 -        ListBuffer<Type> result = new ListBuffer<Type>();
     1.9 -        for(;ts.nonEmpty(); ts = ts.tail) {
    1.10 -            result.append(ts.head.removeBounds());
    1.11 -        }
    1.12 -        return result.toList();
    1.13 -    }
    1.14 -    public Type removeBounds() {
    1.15 -        return this;
    1.16 -    }
    1.17 -
    1.18      /** The underlying method type of this type.
    1.19       */
    1.20      public MethodType asMethodType() { throw new AssertionError(); }
    1.21 @@ -489,10 +478,6 @@
    1.22                  return new WildcardType(t, kind, tsym, bound);
    1.23          }
    1.24  
    1.25 -        public Type removeBounds() {
    1.26 -            return isUnbound() ? this : type;
    1.27 -        }
    1.28 -
    1.29          public Type getExtendsBound() {
    1.30              if (kind == EXTENDS)
    1.31                  return type;

mercurial