Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 vm/class.c |   22 ++--------------------
 1 files changed, 2 insertions(+), 20 deletions(-)

diff --git a/vm/class.c b/vm/class.c
index 15084af..757d242 100644
--- a/vm/class.c
+++ b/vm/class.c
@@ -101,30 +101,12 @@ setup_vtable(struct vm_class *vmc)
                        super_vtable->native_ptr[i]);
 
        /* Our methods */
-       vtable_size = 0;
        for (uint16_t i = 0; i < vmc->class->methods_count; ++i) {
                struct vm_method *vmm = &vmc->methods[i];
 
-               if (super) {
-                       struct vm_method *vmm2
-                               = vm_class_get_method_recursive(super,
-                                       vmm->name, vmm->type);
-                       if (vmm2) {
-                               vmm->virtual_index = vmm2->virtual_index;
-
-                               vtable_setup_method(&vmc->vtable,
-                                       vmm2->virtual_index,
-                                       vm_method_call_ptr(vmm));
-                               continue;
-                       }
-               }
-
-               vmm->virtual_index = super_vtable_size + vtable_size;
-
                vtable_setup_method(&vmc->vtable,
-                       super_vtable_size + vtable_size,
-                       vm_method_call_ptr(vmm));
-               ++vtable_size;
+                                   vmm->virtual_index,
+                                   vm_method_call_ptr(vmm));
        }
 }
 
-- 
1.6.0.6


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to