diff options
author | Alexandre Petit-Bianco <apbianco@cygnus.com> | 2000-04-24 23:27:39 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-04-24 16:27:39 -0700 |
commit | dfb99c83a6df65e2cd23f2f48a5be88ee90803d4 (patch) | |
tree | dc75d46722f42884965be6aa1449325a612c98d8 /gcc/java/parse.y | |
parent | 4feeaae33e02d5185103c75556b8d7a33cee0f18 (diff) | |
download | gcc-dfb99c83a6df65e2cd23f2f48a5be88ee90803d4.zip gcc-dfb99c83a6df65e2cd23f2f48a5be88ee90803d4.tar.gz gcc-dfb99c83a6df65e2cd23f2f48a5be88ee90803d4.tar.bz2 |
parse.y (source_start_java_method): Deleted unecessary code.
2000-04-24 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (source_start_java_method): Deleted unecessary code.
(patch_method_invocation): Fixed comment.
From-SVN: r33392
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r-- | gcc/java/parse.y | 33 |
1 files changed, 3 insertions, 30 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y index b4d3ec7..9088873 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -6847,10 +6847,6 @@ source_start_java_method (fndecl) tree tem; tree parm_decl; int i; -#if 0 - int flag_inner = DECL_CONSTRUCTOR_P (fndecl) - && (INNER_CLASS_TYPE_P (DECL_CONTEXT (fndecl)) ? 1 : 0); -#endif if (!fndecl) return; @@ -6887,29 +6883,6 @@ source_start_java_method (fndecl) LOCAL_FINAL (parm_decl) = 1; BLOCK_CHAIN_DECL (parm_decl); - -#if 0 - /* If this is a constructor of a inner class, hide the extra - this$<n> parameter */ - if (i == 0 && flag_inner) - { - tree link = TREE_CHAIN (tem); - tree type = DECL_CONTEXT (TYPE_NAME (DECL_CONTEXT (fndecl))); - - type = build_pointer_type (TREE_TYPE (type)); - parm_decl = build_decl (PARM_DECL, - build_current_thisn (current_class), type); - BLOCK_CHAIN_DECL (parm_decl); - /* We hide the this$<n> decl in the name field of its - parameter declaration. */ - parm_decl = build_tree_list (DECL_NAME (parm_decl), type); - TREE_CHAIN (tem) = parm_decl; - TREE_CHAIN (parm_decl) = link; - tem = parm_decl; - i++; - } -#endif - } tem = BLOCK_EXPR_DECLS (DECL_FUNCTION_BODY (current_function_decl)); BLOCK_EXPR_DECLS (DECL_FUNCTION_BODY (current_function_decl)) = @@ -9479,9 +9452,9 @@ patch_method_invocation (patch, primary, where, is_static, ret_decl) access$0(access$0(...(this$0))). maybe_use_access_method returns a non zero value if the - this_arg has to be deplaced into the (then generated) - stub argument list. In the mean time, the selected - function might have be replaced by a generated stub. */ + this_arg has to be moved into the (then generated) stub + argument list. In the mean time, the selected function + might have be replaced by a generated stub. */ if (maybe_use_access_method (is_super_init, &list, &this_arg)) args = tree_cons (NULL_TREE, this_arg, args); } |