[vmkit-commits] [vmkit] r63524 - /vmkit/trunk/lib/JnJVM/VMCore/JavaThread.h

Nicolas Geoffray nicolas.geoffray at lip6.fr
Mon Feb 2 09:27:33 PST 2009


Author: geoffray
Date: Mon Feb  2 11:27:33 2009
New Revision: 63524

URL: http://llvm.org/viewvc/llvm-project?rev=63524&view=rev
Log:
Code cleanup.


Modified:
    vmkit/trunk/lib/JnJVM/VMCore/JavaThread.h

Modified: vmkit/trunk/lib/JnJVM/VMCore/JavaThread.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/VMCore/JavaThread.h?rev=63524&r1=63523&r2=63524&view=diff

==============================================================================
--- vmkit/trunk/lib/JnJVM/VMCore/JavaThread.h (original)
+++ vmkit/trunk/lib/JnJVM/VMCore/JavaThread.h Mon Feb  2 11:27:33 2009
@@ -147,11 +147,7 @@
   /// currentThread - Return the current thread as a Java object.
   ///
   JavaObject* currentThread() {
-    JavaThread* result = get();
-    if (result != 0)
-      return result->javaThread;
-    else
-      return 0;
+    return javaThread;
   }
  
   /// throwException - Throw the given exception in the current thread.
@@ -162,16 +158,6 @@
   ///
   void throwPendingException();
   
-  /// compareException - Compare the pending exception's class with the
-  /// given class.
-  ///
-  bool compareException(UserClass* cl) {
-    JavaObject* pe = pendingException;
-    assert(pe && "no pending exception?");
-    bool val = pe->getClass()->subclassOf(cl);
-    return val;
-  }
-  
   /// getJavaException - Return the pending exception.
   ///
   JavaObject* getJavaException() {





More information about the vmkit-commits mailing list