From 7eab31471621986d89155853cb19027bd4b7680b Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Tue, 17 Mar 2009 13:36:00 +0000 Subject: [PATCH] 2009-03-17 Sebastien Pouliot * method-to-ir.c: Remove unneeded/useless method_is_safe http://lists.ximian.com/archives/public/mono-devel-list/2009-March/031404.html svn path=/trunk/mono/; revision=129583 --- mono/mini/ChangeLog | 5 +++++ mono/mini/method-to-ir.c | 12 ------------ 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/mono/mini/ChangeLog b/mono/mini/ChangeLog index 91761c94475..ff5fbb0c5e8 100644 --- a/mono/mini/ChangeLog +++ b/mono/mini/ChangeLog @@ -1,3 +1,8 @@ +2009-03-17 Sebastien Pouliot + + * method-to-ir.c: Remove unneeded/useless method_is_safe + http://lists.ximian.com/archives/public/mono-devel-list/2009-March/031404.html + 2009-03-16 Rodrigo Kumpera * mini.c (mini_method_compile): Print the method been compiled with diff --git a/mono/mini/method-to-ir.c b/mono/mini/method-to-ir.c index 695d52a8376..5463a07b915 100644 --- a/mono/mini/method-to-ir.c +++ b/mono/mini/method-to-ir.c @@ -4499,16 +4499,6 @@ ensure_method_is_allowed_to_call_method (MonoCompile *cfg, MonoMethod *caller, M emit_throw_method_access_exception (cfg, caller, callee, bblock, ip); } -static gboolean -method_is_safe (MonoMethod *method) -{ - /* - if (strcmp (method->name, "unsafeMethod") == 0) - return FALSE; - */ - return TRUE; -} - /* * Check that the IL instructions at ip are the array initialization * sequence and return the pointer to the data and the size. @@ -5443,8 +5433,6 @@ mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b } } } - if (!method_is_safe (method)) - emit_throw_verification_exception (cfg, bblock, ip); } if (header->code_size == 0) -- 2.11.4.GIT