From 9027357653e2186d68707b98478a3603c71d6357 Mon Sep 17 00:00:00 2001 From: Ben Adams Date: Fri, 15 Sep 2017 07:27:39 +0100 Subject: [PATCH] Delete JitHelpers.UnsafeCast (#14005) --- src/mscorlib/src/System/Runtime/CompilerServices/jithelpers.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/mscorlib/src/System/Runtime/CompilerServices/jithelpers.cs b/src/mscorlib/src/System/Runtime/CompilerServices/jithelpers.cs index e140286..b5f14af 100644 --- a/src/mscorlib/src/System/Runtime/CompilerServices/jithelpers.cs +++ b/src/mscorlib/src/System/Runtime/CompilerServices/jithelpers.cs @@ -147,15 +147,6 @@ namespace System.Runtime.CompilerServices throw new InvalidOperationException(); } #else // _DEBUG - // The IL body of this method is not critical, but its body will be replaced with unsafe code, so - // this method is effectively critical - [FriendAccessAllowed] - static internal T UnsafeCast(Object o) where T : class - { - // The body of this function will be replaced by the EE with unsafe code that just returns o!!! - // See getILIntrinsicImplementation for how this happens. - throw new InvalidOperationException(); - } static internal int UnsafeEnumCast(T val) where T : struct // Actually T must be 4 byte (or less) enum { -- 2.7.4