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

Unified Diff: runtime/vm/cpuid.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/cpu_x64.cc ('k') | runtime/vm/cpuinfo_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/cpuid.cc
diff --git a/runtime/vm/cpuid.cc b/runtime/vm/cpuid.cc
index 4800c5be72d049be6ccbecd7f3faa697d063b21b..d0b450bebdcc3a2b0b06b078839e2553349d6b34 100644
--- a/runtime/vm/cpuid.cc
+++ b/runtime/vm/cpuid.cc
@@ -34,7 +34,6 @@ void CpuId::GetCpuId(int32_t level, uint32_t info[4]) {
#endif
}
-
void CpuId::InitOnce() {
uint32_t info[4] = {static_cast<uint32_t>(-1)};
@@ -63,7 +62,6 @@ void CpuId::InitOnce() {
CpuId::brand_string_ = brand_string;
}
-
void CpuId::Cleanup() {
ASSERT(id_string_ != NULL);
free(const_cast<char*>(id_string_));
@@ -74,17 +72,14 @@ void CpuId::Cleanup() {
brand_string_ = NULL;
}
-
const char* CpuId::id_string() {
return strdup(id_string_);
}
-
const char* CpuId::brand_string() {
return strdup(brand_string_);
}
-
const char* CpuId::field(CpuInfoIndices idx) {
switch (idx) {
case kCpuInfoProcessor:
« no previous file with comments | « runtime/vm/cpu_x64.cc ('k') | runtime/vm/cpuinfo_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698