@@ -14,26 +14,18 @@ * file. */ #include "config.h" -#define __NO_EXT_QNX - #include #include #include -#include - #include #include -#ifdef __QNX__ -# include -#endif - #import "OFObject.h" #import "OFTimer.h" #import "OFThread.h" #import "OFRunLoop.h" #import "OFAutoreleasePool.h" @@ -97,12 +89,10 @@ static struct { Class isa; } alloc_failed_exception; -size_t of_pagesize; -size_t of_num_cpus; uint32_t of_hash_seed; #if !defined(OF_APPLE_RUNTIME) || defined(__OBJC2__) static void uncaught_exception_handler(id exception) @@ -260,30 +250,10 @@ #ifdef HAVE_OBJC_ENUMERATIONMUTATION objc_setEnumerationMutationHandler(enumeration_mutation_handler); #endif -#if defined(_WIN32) - SYSTEM_INFO si; - GetSystemInfo(&si); - of_pagesize = si.dwPageSize; - of_num_cpus = si.dwNumberOfProcessors; -#elif defined(__QNX__) - if ((of_pagesize = sysconf(_SC_PAGESIZE)) < 1) - of_pagesize = 4096; - of_num_cpus = _syspage_ptr->num_cpu; -#else -# ifdef _SC_PAGESIZE - if ((of_pagesize = sysconf(_SC_PAGESIZE)) < 1) -# endif - of_pagesize = 4096; -# ifdef _SC_NPROCESSORS_CONF - if ((of_num_cpus = sysconf(_SC_NPROCESSORS_CONF)) < 1) -# endif - of_num_cpus = 1; -#endif - #if defined(OF_HAVE_ARC4RANDOM) of_hash_seed = arc4random(); #elif defined(OF_HAVE_RANDOM) struct timeval t; gettimeofday(&t, NULL);