OSDN Git Service

Delete remaining FANCY_REFERENCE_SUBCLASS code. According to find and
authorCarl Shapiro <cshapiro@google.com>
Tue, 12 Jan 2010 02:15:23 +0000 (18:15 -0800)
committerCarl Shapiro <cshapiro@google.com>
Tue, 12 Jan 2010 02:15:23 +0000 (18:15 -0800)
grep, this is the last use of that macro in Dalvik.

vm/oo/Class.c

index 9565eb0..0c655d4 100644 (file)
@@ -2372,20 +2372,10 @@ static bool precacheReferenceOffsets(ClassObject* clazz)
                 "vmData", "I");
     assert(gDvm.offJavaLangRefReference_vmData >= 0);
 
-#if FANCY_REFERENCE_SUBCLASS
-    meth = dvmFindVirtualMethodByDescriptor(clazz, "clear", "()V");
-    assert(meth != NULL);
-    gDvm.voffJavaLangRefReference_clear = meth->methodIndex;
-
-    meth = dvmFindVirtualMethodByDescriptor(clazz, "enqueue", "()Z");
-    assert(meth != NULL);
-    gDvm.voffJavaLangRefReference_enqueue = meth->methodIndex;
-#else
     /* enqueueInternal() is private and thus a direct method. */
     meth = dvmFindDirectMethodByDescriptor(clazz, "enqueueInternal", "()Z");
     assert(meth != NULL);
     gDvm.methJavaLangRefReference_enqueueInternal = meth;
-#endif
 
     return true;
 }