| Index: runtime/bin/utils_macos.cc
|
| diff --git a/runtime/bin/utils_macos.cc b/runtime/bin/utils_macos.cc
|
| index 2f55dbf524ee4a50abb40f460fc69da13d435f3d..60157ca837089ac9781aef02d2f82b72434031f6 100644
|
| --- a/runtime/bin/utils_macos.cc
|
| +++ b/runtime/bin/utils_macos.cc
|
| @@ -32,7 +32,6 @@ OSError::OSError() : sub_system_(kSystem), code_(0), message_(NULL) {
|
| SetMessage(error_message);
|
| }
|
|
|
| -
|
| void OSError::SetCodeAndMessage(SubSystem sub_system, int code) {
|
| set_sub_system(sub_system);
|
| set_code(code);
|
| @@ -48,7 +47,6 @@ void OSError::SetCodeAndMessage(SubSystem sub_system, int code) {
|
| }
|
| }
|
|
|
| -
|
| const char* StringUtils::ConsoleStringToUtf8(const char* str,
|
| intptr_t len,
|
| intptr_t* result_len) {
|
| @@ -56,7 +54,6 @@ const char* StringUtils::ConsoleStringToUtf8(const char* str,
|
| return NULL;
|
| }
|
|
|
| -
|
| const char* StringUtils::Utf8ToConsoleString(const char* utf8,
|
| intptr_t len,
|
| intptr_t* result_len) {
|
| @@ -64,7 +61,6 @@ const char* StringUtils::Utf8ToConsoleString(const char* utf8,
|
| return NULL;
|
| }
|
|
|
| -
|
| char* StringUtils::ConsoleStringToUtf8(char* str,
|
| intptr_t len,
|
| intptr_t* result_len) {
|
| @@ -72,7 +68,6 @@ char* StringUtils::ConsoleStringToUtf8(char* str,
|
| return NULL;
|
| }
|
|
|
| -
|
| char* StringUtils::Utf8ToConsoleString(char* utf8,
|
| intptr_t len,
|
| intptr_t* result_len) {
|
| @@ -80,7 +75,6 @@ char* StringUtils::Utf8ToConsoleString(char* utf8,
|
| return NULL;
|
| }
|
|
|
| -
|
| char* StringUtils::StrNDup(const char* s, intptr_t n) {
|
| // strndup has only been added to Mac OS X in 10.7. We are supplying
|
| // our own copy here if needed.
|
| @@ -104,26 +98,21 @@ char* StringUtils::StrNDup(const char* s, intptr_t n) {
|
| #endif // !defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) || ...
|
| }
|
|
|
| -
|
| bool ShellUtils::GetUtf8Argv(int argc, char** argv) {
|
| return false;
|
| }
|
|
|
| -
|
| static mach_timebase_info_data_t timebase_info;
|
|
|
| -
|
| void TimerUtils::InitOnce() {
|
| kern_return_t kr = mach_timebase_info(&timebase_info);
|
| ASSERT(KERN_SUCCESS == kr);
|
| }
|
|
|
| -
|
| int64_t TimerUtils::GetCurrentMonotonicMillis() {
|
| return GetCurrentMonotonicMicros() / 1000;
|
| }
|
|
|
| -
|
| #if HOST_OS_IOS
|
| static int64_t GetCurrentTimeMicros() {
|
| // gettimeofday has microsecond resolution.
|
| @@ -136,7 +125,6 @@ static int64_t GetCurrentTimeMicros() {
|
| }
|
| #endif // HOST_OS_IOS
|
|
|
| -
|
| int64_t TimerUtils::GetCurrentMonotonicMicros() {
|
| #if HOST_OS_IOS
|
| // On iOS mach_absolute_time stops while the device is sleeping. Instead use
|
| @@ -163,7 +151,6 @@ int64_t TimerUtils::GetCurrentMonotonicMicros() {
|
| #endif // HOST_OS_IOS
|
| }
|
|
|
| -
|
| void TimerUtils::Sleep(int64_t millis) {
|
| struct timespec req; // requested.
|
| struct timespec rem; // remainder.
|
|
|