Skip to content

Commit 8f1dc6d

Browse files
authored
Remove unused references to SafeHandle methods in corelib.h (#121681)
The uses of these were removed in #100267.
1 parent d3504b6 commit 8f1dc6d

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

src/coreclr/vm/corelib.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -881,10 +881,6 @@ DEFINE_CLASS(CALLCONV_SWIFT, CompilerServices, CallConvSwi
881881

882882
DEFINE_CLASS(SAFE_HANDLE, Interop, SafeHandle)
883883
DEFINE_FIELD(SAFE_HANDLE, HANDLE, handle)
884-
DEFINE_METHOD(SAFE_HANDLE, GET_IS_INVALID, get_IsInvalid, IM_RetBool)
885-
DEFINE_METHOD(SAFE_HANDLE, RELEASE_HANDLE, ReleaseHandle, IM_RetBool)
886-
DEFINE_METHOD(SAFE_HANDLE, DISPOSE, Dispose, IM_RetVoid)
887-
DEFINE_METHOD(SAFE_HANDLE, DISPOSE_BOOL, Dispose, IM_Bool_RetVoid)
888884

889885
DEFINE_CLASS(SECURITY_EXCEPTION, Security, SecurityException)
890886

src/coreclr/vm/metasig.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,6 @@ DEFINE_METASIG_T(SM(IntPtr_RuntimeType_RetDelegate, I C(CLASS), C(DELEGATE)))
502502

503503
DEFINE_METASIG(IM(RetRefByte, _, r(b)))
504504
DEFINE_METASIG_T(IM(Type_RetArrObj, C(TYPE) F, a(j)))
505-
DEFINE_METASIG(IM(Bool_RetVoid, F, v))
506505
DEFINE_METASIG_T(IM(BindingFlags_RetArrFieldInfo, g(BINDING_FLAGS), a(C(FIELD_INFO))))
507506
DEFINE_METASIG_T(IM(BindingFlags_RetArrMethodInfo, g(BINDING_FLAGS), a(C(METHOD_INFO))))
508507
DEFINE_METASIG_T(IM(BindingFlags_RetArrPropertyInfo, g(BINDING_FLAGS), a(C(PROPERTY_INFO))))

src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/SafeHandle.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ public abstract partial class SafeHandle : CriticalFinalizerObject, IDisposable
2121
private static long s_safeHandlesFinalized;
2222
#endif
2323

24-
// IMPORTANT:
25-
// - Do not add or rearrange fields as the EE depends on this layout,
26-
// as well as on the values of the StateBits flags.
27-
// - The EE may also perform the same operations using equivalent native
28-
// code, so this managed code must not assume it is the only code
29-
// manipulating _state.
30-
3124
#if DEBUG && CORECLR
3225
private readonly string? _ctorStackTrace;
3326
#endif

0 commit comments

Comments
 (0)