diff options
author | Michael Lutz <michi@icosahedron.de> | 2019-03-17 15:14:17 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2019-04-06 11:27:39 +0200 |
commit | 967b27a2c12953da3584f4eaade37f94effc007a (patch) | |
tree | ea2daf0e2abb3a861a467575636353f3d183a75e /src/os/macosx | |
parent | ae748166d06e756a0a6abab582dc341494a9b2da (diff) | |
download | openttd-967b27a2c12953da3584f4eaade37f94effc007a.tar.xz |
Codechange: C++11 STL has a function for getting the number of CPU cores.
Diffstat (limited to 'src/os/macosx')
-rw-r--r-- | src/os/macosx/macos.mm | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/os/macosx/macos.mm b/src/os/macosx/macos.mm index 7fb71fe9e..ae9d86ee8 100644 --- a/src/os/macosx/macos.mm +++ b/src/os/macosx/macos.mm @@ -206,23 +206,6 @@ bool GetClipboardContents(char *buffer, const char *last) } #endif -uint GetCPUCoreCount() -{ - uint count = 1; -#if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5) - if (MacOSVersionIsAtLeast(10, 5, 0)) { - count = (uint)[ [ NSProcessInfo processInfo ] activeProcessorCount ]; - } else -#endif - { -#if (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5) - count = MPProcessorsScheduled(); -#endif - } - - return count; -} - /** * Check if a font is a monospace font. * @param name Name of the font. |