This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: FYI: remove unused code in java/
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 15 Nov 2004 14:27:31 -0700
- Subject: Patch: FYI: remove unused code in java/
- Reply-to: tromey at redhat dot com
I'm checking this in on the trunk.
I sent this earlier as an RFA, but didn't hear back. And really it is
just obvious, I don't know what I was thinking earlier. This removes
some defines that are not used (and for all I know were never used).
One of these defines has Jeff Hsu's initials on it, so it is very old
indeed.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* decl.c (instn_ptr_type_node): Removed.
(lineNumbers_ptr_type_node): Removed.
(jint_type): Removed.
(jint_ptr_type): Removed.
Index: decl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/decl.c,v
retrieving revision 1.202
diff -u -r1.202 decl.c
--- decl.c 8 Nov 2004 14:27:36 -0000 1.202
+++ decl.c 15 Nov 2004 21:26:37 -0000
@@ -859,9 +859,6 @@
FINISH_RECORD (dtable_type);
build_decl (TYPE_DECL, get_identifier ("dispatchTable"), dtable_type);
-#define jint_type int_type_node
-#define jint_ptr_type ptr_type_node
-
jexception_type = make_node (RECORD_TYPE);
PUSH_FIELD (jexception_type, field, "start_pc", ptr_type_node);
PUSH_FIELD (jexception_type, field, "end_pc", ptr_type_node);
@@ -880,10 +877,6 @@
PUSH_FIELD (lineNumbers_type, field, "length", unsigned_int_type_node);
FINISH_RECORD (lineNumbers_type);
-#define instn_ptr_type_node ptr_type_node /* XXX JH */
-
-#define lineNumbers_ptr_type_node build_pointer_type(lineNumbers_type)
-
PUSH_FIELD (method_type_node, field, "name", utf8const_ptr_type);
PUSH_FIELD (method_type_node, field, "signature", utf8const_ptr_type);
PUSH_FIELD (method_type_node, field, "accflags", access_flags_type_node);