Remove the MonoGenericContext/MonoMethod arguments from the get_this_arg () and get_u...
[mono.git] / mono / mini / mini-s390x.c
index cd0f37fef5c92fe741e4027de40fcda352e95725..607ff530b9db33c40af6c622159a111aafb1154f 100644 (file)
@@ -5645,11 +5645,10 @@ mono_arch_context_get_int_reg (MonoContext *ctx, int reg)
 /*------------------------------------------------------------------*/
 
 gpointer
-mono_arch_get_this_arg_from_call (MonoGenericSharingContext *gsctx, MonoMethodSignature *sig, mgreg_t *regs, guint8 *code)
+mono_arch_get_this_arg_from_call (mgreg_t *regs, guint8 *code)
 {
        MonoLMF *lmf = (MonoLMF *) ((gchar *) regs - sizeof(MonoLMF));
 
-       /* FIXME: handle returning a struct */
        return (gpointer) lmf->gregs [s390_r2];
 }
 
@@ -5979,20 +5978,3 @@ mono_arch_find_imt_method (mgreg_t *regs, guint8 *code)
 }
 
 /*========================= End of Function ========================*/
-
-/*------------------------------------------------------------------*/
-/*                                                                  */
-/* Name                - mono_arch_find_this_argument.                     */
-/*                                                                  */
-/* Function    -                                                   */
-/*                                                                 */
-/*------------------------------------------------------------------*/
-
-MonoObject *
-mono_arch_find_this_argument (mgreg_t *regs, MonoMethod *method, 
-                             MonoGenericSharingContext *gsctx)
-{
-        return mono_arch_get_this_arg_from_call (gsctx, mono_method_signature (method), regs, NULL);
-}  
-
-/*========================= End of Function ========================*/