From 63814411e1f9fa1ec361c9c1a070dc2b09f4b080 Mon Sep 17 00:00:00 2001 From: Katelyn Gadd Date: Thu, 30 Jul 2026 07:50:10 -0700 Subject: [PATCH] Remove assertions from ToFileDescriptor --- external/corefx-bugfix/src/Native/Unix/Common/pal_utilities.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/external/corefx-bugfix/src/Native/Unix/Common/pal_utilities.h b/external/corefx-bugfix/src/Native/Unix/Common/pal_utilities.h index 3722801d20f0..58fe256d1173 100644 --- a/external/corefx-bugfix/src/Native/Unix/Common/pal_utilities.h +++ b/external/corefx-bugfix/src/Native/Unix/Common/pal_utilities.h @@ -156,9 +156,6 @@ inline static int ToFileDescriptorUnchecked(intptr_t fd) */ inline static int ToFileDescriptor(intptr_t fd) { - assert(0 <= fd); - assert(fd < sysconf(_SC_OPEN_MAX) && "Requested file descriptor exceeds maximum number of files allowed to be open at a time."); - return ToFileDescriptorUnchecked(fd); }