Index: runtime/bin/platform_linux.cc |
diff --git a/runtime/bin/platform_linux.cc b/runtime/bin/platform_linux.cc |
index 2d7757627ff9e0a890502ef5edccaf55c05105bc..da91bc528a90e9c1a6093bf110bbc2985e795543 100644 |
--- a/runtime/bin/platform_linux.cc |
+++ b/runtime/bin/platform_linux.cc |
@@ -65,16 +65,3 @@ char** Platform::Environment(intptr_t* count) { |
void Platform::FreeEnvironment(char** env, intptr_t count) { |
delete[] env; |
} |
- |
- |
-char* Platform::StrError(int error_code) { |
- static const int kBufferSize = 1024; |
- char* error = static_cast<char*>(malloc(kBufferSize)); |
- error[0] = '\0'; |
- char* error_str = strerror_r(error_code, error, kBufferSize); |
- if (error_str != error) { |
- size_t written = snprintf(error, kBufferSize, "%s", error_str); |
- ASSERT(written == strlen(error_str)); |
- } |
- return error; |
-} |