summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Adams <thundercat@illyriad.co.uk>2017-09-15 07:27:39 +0100
committerJan Kotas <jkotas@microsoft.com>2017-09-14 23:27:39 -0700
commit9027357653e2186d68707b98478a3603c71d6357 (patch)
tree5109a43c289c7fb4a4fd58f7eff95d67ff540de8 /src
parent39b88c3878a41bc226139348c9a648228f75923e (diff)
downloadcoreclr-9027357653e2186d68707b98478a3603c71d6357.tar.gz
coreclr-9027357653e2186d68707b98478a3603c71d6357.tar.bz2
coreclr-9027357653e2186d68707b98478a3603c71d6357.zip
Delete JitHelpers.UnsafeCast (#14005)
Diffstat (limited to 'src')
-rw-r--r--src/mscorlib/src/System/Runtime/CompilerServices/jithelpers.cs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mscorlib/src/System/Runtime/CompilerServices/jithelpers.cs b/src/mscorlib/src/System/Runtime/CompilerServices/jithelpers.cs
index e140286cba..b5f14af9cb 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<T>(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>(T val) where T : struct // Actually T must be 4 byte (or less) enum
{