[runtime] Centralize the processing of MonoTrampInfo structures into the mono_tramp_i...
[mono.git] / mono / mini / tramp-ia64.c
index 6a2dc90a303c4cc01d42ed191ab423878f0344dd..c95d26f8fd66c33f49a18513df3daccacef6188c 100644 (file)
@@ -24,7 +24,6 @@
 
 /*
  * mono_arch_get_unbox_trampoline:
- * @gsctx: the generic sharing context
  * @m: method pointer
  * @addr: pointer to native code for @m
  *
@@ -33,7 +32,7 @@
  * unboxing before calling the method
  */
 gpointer
-mono_arch_get_unbox_trampoline (MonoGenericSharingContext *gsctx, MonoMethod *m, gpointer addr)
+mono_arch_get_unbox_trampoline (MonoMethod *m, gpointer addr)
 {
        guint8 *buf;
        gpointer func_addr, func_gp;
@@ -44,9 +43,6 @@ mono_arch_get_unbox_trampoline (MonoGenericSharingContext *gsctx, MonoMethod *m,
 
        /* FIXME: Optimize this */
 
-       if (MONO_TYPE_ISSTRUCT (mono_method_signature (m)->ret))
-               this_reg = 1;
-
        func_addr = ((gpointer*)addr) [0];
        func_gp = ((gpointer*)addr) [1];