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

Unified Diff: runtime/vm/cpuinfo_linux.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/cpuinfo_fuchsia.cc ('k') | runtime/vm/cpuinfo_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/cpuinfo_linux.cc
diff --git a/runtime/vm/cpuinfo_linux.cc b/runtime/vm/cpuinfo_linux.cc
index 3289a1573984d4f9af87e4641532fde22c0fe5ae..94c4678eb1c7d1b44c4ea4da22eefede4410a479 100644
--- a/runtime/vm/cpuinfo_linux.cc
+++ b/runtime/vm/cpuinfo_linux.cc
@@ -5,8 +5,8 @@
#include "vm/globals.h"
#if defined(HOST_OS_LINUX)
-#include "vm/cpuinfo.h"
#include "vm/cpuid.h"
+#include "vm/cpuinfo.h"
#include "vm/proccpuinfo.h"
#include "platform/assert.h"
@@ -50,7 +50,6 @@ void CpuInfo::InitOnce() {
#endif
}
-
void CpuInfo::Cleanup() {
if (method_ == kCpuInfoCpuId) {
CpuId::Cleanup();
@@ -60,7 +59,6 @@ void CpuInfo::Cleanup() {
}
}
-
bool CpuInfo::FieldContains(CpuInfoIndices idx, const char* search_string) {
if (method_ == kCpuInfoCpuId) {
const char* field = CpuId::field(idx);
@@ -73,7 +71,6 @@ bool CpuInfo::FieldContains(CpuInfoIndices idx, const char* search_string) {
}
}
-
const char* CpuInfo::ExtractField(CpuInfoIndices idx) {
if (method_ == kCpuInfoCpuId) {
return CpuId::field(idx);
@@ -83,7 +80,6 @@ const char* CpuInfo::ExtractField(CpuInfoIndices idx) {
}
}
-
bool CpuInfo::HasField(const char* field) {
if (method_ == kCpuInfoCpuId) {
return (strcmp(field, fields_[kCpuInfoProcessor]) == 0) ||
« no previous file with comments | « runtime/vm/cpuinfo_fuchsia.cc ('k') | runtime/vm/cpuinfo_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698