Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Zolotarev <alex@maps.me>2015-09-12 00:52:30 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 03:05:17 +0300
commit945dd6dbd5988617acb63d7087278aa6b42cc68e (patch)
treebd1543aa23a05a848bdf45d4dc956398b38dacda /platform/platform_win.cpp
parentfb7b1382a8783c863e58bacb31ada0032e9661c2 (diff)
C++11 version of Platform::CpuCores().
Diffstat (limited to 'platform/platform_win.cpp')
-rw-r--r--platform/platform_win.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/platform/platform_win.cpp b/platform/platform_win.cpp
index de63036a1b..b69ea1ff89 100644
--- a/platform/platform_win.cpp
+++ b/platform/platform_win.cpp
@@ -117,16 +117,6 @@ Platform::EError Platform::GetFileType(string const & path, EFileType & type)
return ERR_OK;
}
-int Platform::CpuCores() const
-{
- SYSTEM_INFO sysinfo;
- GetSystemInfo(&sysinfo);
- DWORD numCPU = sysinfo.dwNumberOfProcessors;
- if (numCPU >= 1)
- return static_cast<int>(numCPU);
- return 1;
-}
-
string Platform::UniqueClientId() const
{
return "@TODO";