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

Unified Diff: runtime/bin/utils_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/bin/utils_fuchsia.cc ('k') | runtime/bin/utils_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/utils_linux.cc
diff --git a/runtime/bin/utils_linux.cc b/runtime/bin/utils_linux.cc
index 09b852f31d60d51340486349fe6eed1aa25a38cc..766ccdbc03c84a8617644ba25c908250871ad08d 100644
--- a/runtime/bin/utils_linux.cc
+++ b/runtime/bin/utils_linux.cc
@@ -25,7 +25,6 @@ OSError::OSError() : sub_system_(kSystem), code_(0), message_(NULL) {
SetMessage(Utils::StrError(errno, error_buf, kBufferSize));
}
-
void OSError::SetCodeAndMessage(SubSystem sub_system, int code) {
set_sub_system(sub_system);
set_code(code);
@@ -40,7 +39,6 @@ void OSError::SetCodeAndMessage(SubSystem sub_system, int code) {
}
}
-
const char* StringUtils::ConsoleStringToUtf8(const char* str,
intptr_t len,
intptr_t* result_len) {
@@ -48,7 +46,6 @@ const char* StringUtils::ConsoleStringToUtf8(const char* str,
return NULL;
}
-
const char* StringUtils::Utf8ToConsoleString(const char* utf8,
intptr_t len,
intptr_t* result_len) {
@@ -56,7 +53,6 @@ const char* StringUtils::Utf8ToConsoleString(const char* utf8,
return NULL;
}
-
char* StringUtils::ConsoleStringToUtf8(char* str,
intptr_t len,
intptr_t* result_len) {
@@ -64,7 +60,6 @@ char* StringUtils::ConsoleStringToUtf8(char* str,
return NULL;
}
-
char* StringUtils::Utf8ToConsoleString(char* utf8,
intptr_t len,
intptr_t* result_len) {
@@ -72,25 +67,20 @@ char* StringUtils::Utf8ToConsoleString(char* utf8,
return NULL;
}
-
char* StringUtils::StrNDup(const char* s, intptr_t n) {
return strndup(s, n);
}
-
bool ShellUtils::GetUtf8Argv(int argc, char** argv) {
return false;
}
-
void TimerUtils::InitOnce() {}
-
int64_t TimerUtils::GetCurrentMonotonicMillis() {
return GetCurrentMonotonicMicros() / 1000;
}
-
int64_t TimerUtils::GetCurrentMonotonicMicros() {
struct timespec ts;
if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) {
@@ -104,7 +94,6 @@ int64_t TimerUtils::GetCurrentMonotonicMicros() {
return result;
}
-
void TimerUtils::Sleep(int64_t millis) {
struct timespec req; // requested.
struct timespec rem; // remainder.
« no previous file with comments | « runtime/bin/utils_fuchsia.cc ('k') | runtime/bin/utils_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698