Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(647)

Unified Diff: runtime/vm/proccpuinfo.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/precompiler.cc ('k') | runtime/vm/profiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « runtime/vm/precompiler.cc ('k') | runtime/vm/profiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698