[kaffe] CVS kaffe (kaz): kaffe/kaffevm/access.c

Kaffe CVS cvs-commits at kaffe.org
Fri Dec 23 15:26:26 PST 2005


PatchSet 7042 
Date: 2005/12/23 23:19:59
Author: kaz
Branch: HEAD
Tag: (none) 
Log:
2005-12-23  Ito Kazumitsu  <kaz at maczuka.gcd.org>

        * kaffe/kaffevm/access.c
        (recursive_instanceof): Removed,

Members: 
	ChangeLog:1.4561->1.4562 
	kaffe/kaffevm/access.c:1.16->1.17 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4561 kaffe/ChangeLog:1.4562
--- kaffe/ChangeLog:1.4561	Fri Dec 23 21:55:09 2005
+++ kaffe/ChangeLog	Fri Dec 23 23:19:59 2005
@@ -1,3 +1,8 @@
+2005-12-23  Ito Kazumitsu  <kaz at maczuka.gcd.org>
+
+	* kaffe/kaffevm/access.c
+	(recursive_instanceof): Removed,
+
 2005-12-23  Dalibor Topic  <robilad at kaffe.org>
 
 	* include/Makefile.am: Do not generate unused header 
Index: kaffe/kaffe/kaffevm/access.c
diff -u kaffe/kaffe/kaffevm/access.c:1.16 kaffe/kaffe/kaffevm/access.c:1.17
--- kaffe/kaffe/kaffevm/access.c:1.16	Thu Dec 22 17:51:23 2005
+++ kaffe/kaffe/kaffevm/access.c	Fri Dec 23 23:20:01 2005
@@ -115,44 +115,6 @@
 	return( retval );
 }
 
-/*
- * Returns 1 if oc or its outer class is an instance of c
- */
-static
-int recursive_instanceof(Hjava_lang_Class *c, Hjava_lang_Class *oc)
-{
-	if ( instanceof(c, oc) )
-	{
-		return 1;
-	}
-	else
-	{
-       		innerClass *ic;
-		Hjava_lang_Class *outer;
-		errorInfo einfo;
-		ic = NULL;
-		outer = NULL;
-
-	       	if( oc->this_inner_index >= 0 )
-		{
-			ic = &oc->inner_classes[oc->this_inner_index];
-			if( ic->outer_class )
-			{
-				outer = getClass(ic->outer_class, oc, &einfo);
-				if( outer == NULL )
-				{
-					discardErrorInfo(&einfo);
-				}
-			}
-		}
-		if ( outer != NULL )
-		{
-			return recursive_instanceof(c, outer);
-		}
-		return 0;
-	}
-}
-
 int checkAccess(struct Hjava_lang_Class *context,
 		struct Hjava_lang_Class *target,
 		accessFlags target_flags)




More information about the kaffe mailing list