Index: runtime/vm/cpuinfo_win.cc |
diff --git a/runtime/vm/cpuinfo_win.cc b/runtime/vm/cpuinfo_win.cc |
index b648566c5d8799fb04c1e134598bdcb408d443ce..1570af7c64d2a5d9fd81775aa6e69bc249163283 100644 |
--- a/runtime/vm/cpuinfo_win.cc |
+++ b/runtime/vm/cpuinfo_win.cc |
@@ -43,37 +43,12 @@ bool CpuInfo::FieldContains(CpuInfoIndices idx, const char* search_string) { |
} |
-bool CpuInfo::FieldContainsByString(const char* field, |
- const char* search_string) { |
- ASSERT(method_ != kCpuInfoDefault); |
- for (int i = 0; i < kCpuInfoMax; i++) { |
- if (strcmp(field, fields_[i]) == 0) { |
- return FieldContains(static_cast<CpuInfoIndices>(i), search_string); |
- } |
- } |
- UNIMPLEMENTED(); |
- return false; |
-} |
- |
- |
const char* CpuInfo::ExtractField(CpuInfoIndices idx) { |
ASSERT(method_ != kCpuInfoDefault); |
return CpuId::field(idx); |
} |
-const char* CpuInfo::ExtractFieldByString(const char* field) { |
- ASSERT(method_ != kCpuInfoDefault); |
- for (int i = 0; i < kCpuInfoMax; i++) { |
- if (strcmp(field, fields_[i]) == 0) { |
- return ExtractField(static_cast<CpuInfoIndices>(i)); |
- } |
- } |
- UNIMPLEMENTED(); |
- return NULL; |
-} |
- |
- |
bool CpuInfo::HasField(const char* field) { |
ASSERT(method_ != kCpuInfoDefault); |
return (strcmp(field, fields_[kCpuInfoProcessor]) == 0) || |