Index: runtime/vm/proccpuinfo.cc |
diff --git a/runtime/vm/proccpuinfo.cc b/runtime/vm/proccpuinfo.cc |
index 5bb402dd743868649f128b569f4c04865722c9ef..e74175eb8d90d284dcc5694e6952ef0f6c413959 100644 |
--- a/runtime/vm/proccpuinfo.cc |
+++ b/runtime/vm/proccpuinfo.cc |
@@ -14,11 +14,9 @@ |
namespace dart { |
- |
char* ProcCpuInfo::data_ = NULL; |
intptr_t ProcCpuInfo::datalen_ = 0; |
- |
void ProcCpuInfo::InitOnce() { |
// Get the size of the cpuinfo file by reading it until the end. This is |
// required because files under /proc do not always return a valid size |
@@ -55,14 +53,12 @@ void ProcCpuInfo::InitOnce() { |
data_[datalen_] = '\0'; |
} |
- |
void ProcCpuInfo::Cleanup() { |
ASSERT(data_); |
free(data_); |
data_ = NULL; |
} |
- |
char* ProcCpuInfo::FieldStart(const char* field) { |
// Look for first field occurrence, and ensure it starts the line. |
size_t fieldlen = strlen(field); |
@@ -88,7 +84,6 @@ char* ProcCpuInfo::FieldStart(const char* field) { |
return p; |
} |
- |
bool ProcCpuInfo::FieldContains(const char* field, const char* search_string) { |
ASSERT(data_ != NULL); |
ASSERT(search_string != NULL); |
@@ -112,7 +107,6 @@ bool ProcCpuInfo::FieldContains(const char* field, const char* search_string) { |
return ret; |
} |
- |
// Extract the content of a the first occurrence of a given field in |
// the content of the cpuinfo file and return it as a heap-allocated |
// string that must be freed by the caller using free. |
@@ -144,7 +138,6 @@ const char* ProcCpuInfo::ExtractField(const char* field) { |
return result; |
} |
- |
bool ProcCpuInfo::HasField(const char* field) { |
ASSERT(field != NULL); |
ASSERT(data_ != NULL); |