aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2007-01-13 04:21:51 +0000
committerTom Tromey <tromey@gcc.gnu.org>2007-01-13 04:21:51 +0000
commit6ef795d2e127b3245150c52931d16a07cae68deb (patch)
treed08ac509ff5c9b7c584fc0bdcd676a230d922653 /gcc/java/class.c
parent86b5186f2fa3d33c7758e6894c13b28588fff89c (diff)
downloadgcc-6ef795d2e127b3245150c52931d16a07cae68deb.zip
gcc-6ef795d2e127b3245150c52931d16a07cae68deb.tar.gz
gcc-6ef795d2e127b3245150c52931d16a07cae68deb.tar.bz2
jcf-dump.c (main): Updated call to find_class.
* jcf-dump.c (main): Updated call to find_class. * lang.c (java_init): Removed dead code. * jcf-parse.c (read_class): Don't use java_source field. Removed dead code. (parse_zip_file_entries): Don't use java_source field. (process_zip_dir): Likewise. (jcf_parse): Removed dead code. (java_parse_file): Likewise. (read_class): Updated call to find_class. * jcf-io.c (find_class): Don't use java_source field. Removed 'source_ok' argument, .java logic. * jcf.h (JCF) <java_source>: Removed field. (JCF_ZERO): Updated. (find_class): Updated. * decl.c: Removed dead code. * class.c: Removed dead code. From-SVN: r120745
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c62
1 files changed, 1 insertions, 61 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index a22a936..a2a70a7 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -669,19 +669,6 @@ add_interface (tree this_class, tree interface_class)
BINFO_BASE_APPEND (TYPE_BINFO (this_class), interface_binfo);
}
-#if 0
-/* Return the address of a pointer to the first FUNCTION_DECL
- in the list (*LIST) whose DECL_NAME is NAME. */
-
-static tree *
-find_named_method (tree *list, tree name)
-{
- while (*list && DECL_NAME (*list) != name)
- list = &TREE_CHAIN (*list);
- return list;
-}
-#endif
-
static tree
build_java_method_type (tree fntype, tree this_class, int access_flags)
{
@@ -842,24 +829,6 @@ set_constant_value (tree field, tree constant)
}
}
-/* Count the number of Unicode chars encoded in a given Ut8 string. */
-
-#if 0
-int
-strLengthUtf8 (char *str, int len)
-{
- register unsigned char* ptr = (unsigned char*) str;
- register unsigned char *limit = ptr + len;
- int str_length = 0;
- for (; ptr < limit; str_length++) {
- if (UTF8_GET (ptr, limit) < 0)
- return -1;
- }
- return str_length;
-}
-#endif
-
-
/* Calculate a hash value for a string encoded in Utf8 format.
* This returns the same hash value as specified for java.lang.String.hashCode.
*/
@@ -2297,36 +2266,7 @@ maybe_layout_super_class (tree super_class, tree this_class ATTRIBUTE_UNUSED)
if (TREE_TYPE (super_class) != NULL_TREE)
super_class = TREE_TYPE (super_class);
else
- {
-#if 0
- /* do_resolve_class expects an EXPR_WITH_FILE_LOCATION, so
- we give it one. */
- tree this_wrap = NULL_TREE;
-
- /* Set the correct context for class resolution. */
- current_class = this_class;
-
- if (this_class)
- {
- tree this_decl = TYPE_NAME (this_class);
-#ifdef USE_MAPPED_LOCATION
- this_wrap = build_expr_wfl (this_class,
- DECL_SOURCE_LOCATION (this_decl));
-#else
- this_wrap = build_expr_wfl (this_class,
- DECL_SOURCE_FILE (this_decl),
- DECL_SOURCE_LINE (this_decl), 0);
-#endif
- }
- super_class
- = do_resolve_class (DECL_CONTEXT (TYPE_NAME (this_class)),
- this_class, super_class, NULL_TREE, this_wrap);
- if (!super_class)
- return NULL_TREE; /* FIXME, NULL_TREE not checked by caller. */
- super_class = TREE_TYPE (super_class);
-#endif
- gcc_unreachable ();
- }
+ gcc_unreachable ();
}
if (!TYPE_SIZE (super_class))
safe_layout_class (super_class);