Loading...
libdyld/LibSystemHelpers.cpp dyld-1042.1 dyld-960
--- dyld/dyld-1042.1/libdyld/LibSystemHelpers.cpp
+++ dyld/dyld-960/libdyld/LibSystemHelpers.cpp
@@ -37,9 +37,6 @@
 #include <dlfcn_private.h>
 #include <libc_private.h>
 #include <ptrauth.h>
-#include <pthread/pthread.h>
-#include <pthread/tsd_private.h>
-
 #if !TARGET_OS_DRIVERKIT
   #include <vproc_priv.h>
 #endif
@@ -59,13 +56,12 @@
 // implemented in assembly
 extern "C" void* tlv_get_addr(dyld3::MachOAnalyzer::TLV_Thunk*);
 
-uint8_t dyld_process_has_objc_patches = 0;
 
 namespace dyld4 {
 
 uintptr_t LibSystemHelpers::version() const
 {
-    return 5;
+    return 2;
 }
 
 void* LibSystemHelpers::malloc(size_t size) const
@@ -97,18 +93,6 @@
 int LibSystemHelpers::pthread_key_create_free(pthread_key_t* key) const
 {
     return ::pthread_key_create(key, &::free);
-}
-
-int LibSystemHelpers::pthread_key_init_free(int key) const
-{
-    return ::pthread_key_init_np(key, &::free);
-}
-
-void LibSystemHelpers::run_async(void* (*func)(void*), void* context) const
-{
-    pthread_t workerThread;
-    pthread_create(&workerThread, NULL, func, context);
-    pthread_detach(workerThread);
 }
 
 static void finalizeListTLV_thunk(void* list)
@@ -196,12 +180,5 @@
     ::os_unfair_recursive_lock_unlock_forked_child(lock);
 }
 
-// Added in version 3
-
-void LibSystemHelpers::setDyldPatchedObjCClasses() const
-{
-    dyld_process_has_objc_patches = 1;
-}
-
 } // namespace dyld4