diff options
author | James Rowe <jroweboy@gmail.com> | 2020-01-17 18:41:18 -0700 |
---|---|---|
committer | James Rowe <jroweboy@gmail.com> | 2020-01-17 18:41:18 -0700 |
commit | 4512a6bbfcf360fc826b5cc9188a224bbedc5d62 (patch) | |
tree | 9f24bd665a4c91f98a1058a21f0831e9a6f0025a /src/common/telemetry.cpp | |
parent | 530a761e7a84cb6c192cd07d93a71156e96147a6 (diff) |
Remove unused CPU Vendor string and telemtry field
The information is duplicated in the brand string and the telemetry field is unused
Diffstat (limited to 'src/common/telemetry.cpp')
-rw-r--r-- | src/common/telemetry.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/common/telemetry.cpp b/src/common/telemetry.cpp index f53a8d193..200c6489a 100644 --- a/src/common/telemetry.cpp +++ b/src/common/telemetry.cpp @@ -44,20 +44,6 @@ template class Field<std::string>; template class Field<const char*>; template class Field<std::chrono::microseconds>; -#ifdef ARCHITECTURE_x86_64 -static const char* CpuVendorToStr(Common::CPUVendor vendor) { - switch (vendor) { - case Common::CPUVendor::INTEL: - return "Intel"; - case Common::CPUVendor::AMD: - return "Amd"; - case Common::CPUVendor::OTHER: - return "Other"; - } - UNREACHABLE(); -} -#endif - void AppendBuildInfo(FieldCollection& fc) { const bool is_git_dirty{std::strstr(Common::g_scm_desc, "dirty") != nullptr}; fc.AddField(FieldType::App, "Git_IsDirty", is_git_dirty); @@ -71,7 +57,6 @@ void AppendCPUInfo(FieldCollection& fc) { #ifdef ARCHITECTURE_x86_64 fc.AddField(FieldType::UserSystem, "CPU_Model", Common::GetCPUCaps().cpu_string); fc.AddField(FieldType::UserSystem, "CPU_BrandString", Common::GetCPUCaps().brand_string); - fc.AddField(FieldType::UserSystem, "CPU_Vendor", CpuVendorToStr(Common::GetCPUCaps().vendor)); fc.AddField(FieldType::UserSystem, "CPU_Extension_x64_AES", Common::GetCPUCaps().aes); fc.AddField(FieldType::UserSystem, "CPU_Extension_x64_AVX", Common::GetCPUCaps().avx); fc.AddField(FieldType::UserSystem, "CPU_Extension_x64_AVX2", Common::GetCPUCaps().avx2); |