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

Unified Diff: runtime/vm/cpuinfo_macos.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_linux.cc ('k') | runtime/vm/cpuinfo_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/cpuinfo_macos.cc
diff --git a/runtime/vm/cpuinfo_macos.cc b/runtime/vm/cpuinfo_macos.cc
index 6139f5602f10cf4af4cc91c961b9b94eab2202b1..b47720245dd504afbd5d17eb88d8435bfef48b5a 100644
--- a/runtime/vm/cpuinfo_macos.cc
+++ b/runtime/vm/cpuinfo_macos.cc
@@ -8,8 +8,8 @@
#include "vm/cpuinfo.h"
#include <errno.h> // NOLINT
-#include <sys/types.h> // NOLINT
#include <sys/sysctl.h> // NOLINT
+#include <sys/types.h> // NOLINT
#include "platform/assert.h"
@@ -28,10 +28,8 @@ void CpuInfo::InitOnce() {
fields_[kCpuInfoArchitecture] = NULL;
}
-
void CpuInfo::Cleanup() {}
-
bool CpuInfo::FieldContains(CpuInfoIndices idx, const char* search_string) {
ASSERT(method_ != kCpuInfoDefault);
ASSERT(search_string != NULL);
@@ -48,7 +46,6 @@ bool CpuInfo::FieldContains(CpuInfoIndices idx, const char* search_string) {
return (strcasestr(dest, search_string) != NULL);
}
-
const char* CpuInfo::ExtractField(CpuInfoIndices idx) {
ASSERT(method_ != kCpuInfoDefault);
const char* field = FieldName(idx);
@@ -70,7 +67,6 @@ const char* CpuInfo::ExtractField(CpuInfoIndices idx) {
return result;
}
-
bool CpuInfo::HasField(const char* field) {
ASSERT(method_ != kCpuInfoDefault);
ASSERT(field != NULL);
« no previous file with comments | « runtime/vm/cpuinfo_linux.cc ('k') | runtime/vm/cpuinfo_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698