CVS kaffe (robilad): removed unused debug functions in System.c

Kaffe CVS <[email protected]>
Newsgroups gmane.comp.java.vm.kaffe.general
Message-ID <[email protected]>
PatchSet 7614 
Date: 2007/12/21 01:49:34
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
removed unused debug functions in System.c

2007-12-20  Dalibor Topic  <[email protected]>

        * libraries/clib/native/System.c (java_lang_System_debug,
        java_lang_System_debugE): Removed unused functions.

Members: 
	ChangeLog:1.5112->1.5113 
	libraries/clib/native/System.c:1.68->1.69 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.5112 kaffe/ChangeLog:1.5113
--- kaffe/ChangeLog:1.5112	Fri Dec 21 00:56:00 2007
+++ kaffe/ChangeLog	Fri Dec 21 01:49:34 2007
@@ -1,5 +1,10 @@
 2007-12-20  Dalibor Topic  <[email protected]>
 
+	* libraries/clib/native/System.c (java_lang_System_debug,
+	java_lang_System_debugE): Removed unused functions.
+
+2007-12-20  Dalibor Topic  <[email protected]>
+
 	* README: Refer to FAQ/FAQ.requiredlibraries for required libs.
 	Describe passing a compiler for the Java programming language to the
 	configure script.
Index: kaffe/libraries/clib/native/System.c
diff -u kaffe/libraries/clib/native/System.c:1.68 kaffe/libraries/clib/native/System.c:1.69
--- kaffe/libraries/clib/native/System.c:1.68	Sun Jun 11 23:12:13 2006
+++ kaffe/libraries/clib/native/System.c	Fri Dec 21 01:49:37 2007
@@ -44,47 +44,11 @@
 
 #include <locale.h>
 
-extern void printStackTrace(struct Hjava_lang_Throwable*,
-	struct Hjava_lang_Object*, int);
-
 jint
 java_lang_VMSystem_identityHashCode(struct Hjava_lang_Object* o)
 {
   /* Hash code is object's address */
   return ((jint)(jword)o);
-}
-
-/*
- * See java/lang/System.java for info on these two routines.
- */
-void
-java_lang_System_debug(struct Hjava_lang_String *str)
-{
-	char *s;
-
-	s = checkPtr(stringJava2C(str));
-	dprintf("%s\n", s);
-	gc_free(s);
-}
-
-void
-java_lang_System_debugE(struct Hjava_lang_Throwable *t)
-{
-	Hjava_lang_String *msg;
-	const char *cname;
-	char *s;
-
-	cname = CLASS_CNAME(OBJECT_CLASS(&t->base));
-	msg = unhand(t)->detailMessage;
-
-	if (msg) {
-		s = checkPtr(stringJava2C(msg));
-		dprintf("%s: %s\n", cname, s);
-		gc_free(s);
-	} else {
-		dprintf("%s\n", cname);
-	}
-	printStackTrace(t, NULL, 1);
 }
 
 void
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.