Delete dead code (#25513)
authorJan Kotas <jkotas@microsoft.com>
Tue, 2 Jul 2019 02:46:37 +0000 (19:46 -0700)
committerGitHub <noreply@github.com>
Tue, 2 Jul 2019 02:46:37 +0000 (19:46 -0700)
src/System.Private.CoreLib/src/System/Exception.CoreCLR.cs
src/vm/comutilnative.cpp
src/vm/ecalllist.h

index 7597a5b..448ba0e 100644 (file)
@@ -372,14 +372,6 @@ namespace System
         // See src\inc\corexcep.h's EXCEPTION_COMPLUS definition:
         private const int _COMPlusExceptionCode = unchecked((int)0xe0434352);   // Win32 exception code for COM+ exceptions
 
-        internal bool IsTransient
-        {
-            get
-            {
-                return nIsTransient(HResult);
-            }
-        }
-
         private string? SerializationRemoteStackTraceString => _remoteStackTraceString;
 
         private object? SerializationWatsonBuckets => _watsonBuckets;
@@ -399,9 +391,6 @@ namespace System
             }
         }
 
-        [MethodImplAttribute(MethodImplOptions.InternalCall)]
-        private static extern bool nIsTransient(int hr);
-
         // This piece of infrastructure exists to help avoid deadlocks 
         // between parts of mscorlib that might throw an exception while 
         // holding a lock that are also used by mscorlib's ResourceManager
index 27d85f6..930905b 100644 (file)
@@ -125,15 +125,6 @@ FCIMPL1(FC_BOOL_RET, ExceptionNative::IsImmutableAgileException, Object* pExcept
 }
 FCIMPLEND
 
-FCIMPL1(FC_BOOL_RET, ExceptionNative::IsTransient, INT32 hresult)
-{
-    FCALL_CONTRACT;
-
-    FC_RETURN_BOOL(Exception::IsTransient(hresult));
-}
-FCIMPLEND
-
-
 // This FCall sets a flag against the thread exception state to indicate to
 // IL_Throw and the StackTraceInfo implementation to account for the fact
 // that we have restored a foreign exception dispatch details.
index 3b9d6b1..62e2241 100644 (file)
@@ -177,7 +177,6 @@ FCFuncEnd()
 
 FCFuncStart(gExceptionFuncs)
     FCFuncElement("IsImmutableAgileException", ExceptionNative::IsImmutableAgileException)
-    FCFuncElement("nIsTransient", ExceptionNative::IsTransient)
     FCFuncElement("GetMethodFromStackTrace", SystemNative::GetMethodFromStackTrace)
     QCFuncElement("GetMessageFromNativeResources", ExceptionNative::GetMessageFromNativeResources)
     FCFuncElement("PrepareForForeignExceptionRaise", ExceptionNative::PrepareForForeignExceptionRaise)