| 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.
|
|
|