| Index: runtime/bin/platform.cc
|
| diff --git a/runtime/bin/platform.cc b/runtime/bin/platform.cc
|
| index bfe107fc1a6068db0c698b153ee33fce9edd7016..7aa597cc9ebf9bbafb1bf7b3849d88916438b022 100644
|
| --- a/runtime/bin/platform.cc
|
| +++ b/runtime/bin/platform.cc
|
| @@ -17,17 +17,14 @@ void FUNCTION_NAME(Platform_NumberOfProcessors)(Dart_NativeArguments args) {
|
| Dart_SetReturnValue(args, Dart_NewInteger(Platform::NumberOfProcessors()));
|
| }
|
|
|
| -
|
| void FUNCTION_NAME(Platform_OperatingSystem)(Dart_NativeArguments args) {
|
| Dart_SetReturnValue(args, DartUtils::NewString(Platform::OperatingSystem()));
|
| }
|
|
|
| -
|
| void FUNCTION_NAME(Platform_PathSeparator)(Dart_NativeArguments args) {
|
| Dart_SetReturnValue(args, DartUtils::NewString(File::PathSeparator()));
|
| }
|
|
|
| -
|
| void FUNCTION_NAME(Platform_LocalHostname)(Dart_NativeArguments args) {
|
| const intptr_t HOSTNAME_LENGTH = 256;
|
| char hostname[HOSTNAME_LENGTH];
|
| @@ -38,7 +35,6 @@ void FUNCTION_NAME(Platform_LocalHostname)(Dart_NativeArguments args) {
|
| }
|
| }
|
|
|
| -
|
| void FUNCTION_NAME(Platform_ExecutableName)(Dart_NativeArguments args) {
|
| if (Platform::GetExecutableName() != NULL) {
|
| Dart_SetReturnValue(
|
| @@ -48,7 +44,6 @@ void FUNCTION_NAME(Platform_ExecutableName)(Dart_NativeArguments args) {
|
| }
|
| }
|
|
|
| -
|
| void FUNCTION_NAME(Platform_ResolvedExecutableName)(Dart_NativeArguments args) {
|
| if (Platform::GetResolvedExecutableName() != NULL) {
|
| Dart_SetReturnValue(
|
| @@ -58,7 +53,6 @@ void FUNCTION_NAME(Platform_ResolvedExecutableName)(Dart_NativeArguments args) {
|
| }
|
| }
|
|
|
| -
|
| void FUNCTION_NAME(Platform_ExecutableArguments)(Dart_NativeArguments args) {
|
| int end = Platform::GetScriptIndex();
|
| char** argv = Platform::GetArgv();
|
| @@ -73,7 +67,6 @@ void FUNCTION_NAME(Platform_ExecutableArguments)(Dart_NativeArguments args) {
|
| Dart_SetReturnValue(args, result);
|
| }
|
|
|
| -
|
| void FUNCTION_NAME(Platform_Environment)(Dart_NativeArguments args) {
|
| intptr_t count = 0;
|
| char** env = Platform::Environment(&count);
|
| @@ -104,12 +97,10 @@ void FUNCTION_NAME(Platform_Environment)(Dart_NativeArguments args) {
|
| }
|
| }
|
|
|
| -
|
| void FUNCTION_NAME(Platform_GetVersion)(Dart_NativeArguments args) {
|
| Dart_SetReturnValue(args, Dart_NewStringFromCString(Dart_VersionString()));
|
| }
|
|
|
| -
|
| void FUNCTION_NAME(Platform_LocaleName)(Dart_NativeArguments args) {
|
| const char* locale = Platform::LocaleName();
|
| if (locale == NULL) {
|
|
|