Skip to content

Commit 7cd5e5b

Browse files
authored
Remove a bunch of unused #include's from Metadata.cpp (#40178)
1 parent 5b32645 commit 7cd5e5b

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

stdlib/public/runtime/Metadata.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@
4242
// Avoid defining macro max(), min() which conflict with std::max(), std::min()
4343
#define NOMINMAX
4444
#include <windows.h>
45-
#else
46-
#include <sys/mman.h>
47-
#include <unistd.h>
48-
// WASI doesn't support dynamic linking yet.
49-
#if !defined(__wasi__)
50-
#include <dlfcn.h>
51-
#endif // !defined(__wasi__)
5245
#endif
5346
#if SWIFT_PTRAUTH
5447
#include <ptrauth.h>
@@ -65,10 +58,6 @@ extern "C" void _objc_setClassCopyFixupHandler(void (* _Nonnull newFixupHandler)
6558
#include "swift/Runtime/Debug.h"
6659
#include "Private.h"
6760

68-
#if defined(__APPLE__)
69-
#include <mach/vm_page_size.h>
70-
#endif
71-
7261
#if SWIFT_OBJC_INTEROP
7362
#include "ObjCRuntimeGetImageNameFromClass.h"
7463
#endif

0 commit comments

Comments
 (0)