diff options
Diffstat (limited to 'gcc/java/expr.c')
-rw-r--r-- | gcc/java/expr.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c index 2a8e2e3..a1ec332 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -1517,16 +1517,6 @@ lookup_field (typep, name) if (DECL_NAME (field) == name) return field; - /* If *typep is an innerclass, lookup the field in its enclosing - contexts */ - if (INNER_CLASS_TYPE_P (*typep)) - { - tree outer_type = TREE_TYPE (DECL_CONTEXT (TYPE_NAME (*typep))); - - if ((field = lookup_field (&outer_type, name))) - return field; - } - /* Process implemented interfaces. */ basetype_vec = TYPE_BINFO_BASETYPES (*typep); n = TREE_VEC_LENGTH (basetype_vec); |