Index: runtime/bin/file.cc |
diff --git a/runtime/bin/file.cc b/runtime/bin/file.cc |
index 55ed95260d7936bb7a577c700df043824ae6f398..feeb130fec57106d5851ef6b3fde0b32920e0b55 100644 |
--- a/runtime/bin/file.cc |
+++ b/runtime/bin/file.cc |
@@ -76,22 +76,6 @@ void FUNCTION_NAME(File_SetPointer)(Dart_NativeArguments args) { |
} |
-void FUNCTION_NAME(File_SetTranslation)(Dart_NativeArguments args) { |
- File* file = GetFile(args); |
- ASSERT(file != NULL); |
- int64_t translation; |
- Dart_Handle status = Dart_GetNativeIntegerArgument(args, 1, &translation); |
- if (Dart_IsError(status)) { |
- Dart_PropagateError(status); |
- } |
- if ((translation != File::kText) && (translation != File::kBinary)) { |
- Dart_ThrowException(DartUtils::NewDartArgumentError( |
- "The argument must be a FileTranslation mode")); |
- } |
- file->SetTranslation(static_cast<File::DartFileTranslation>(translation)); |
-} |
- |
- |
void FUNCTION_NAME(File_Open)(Dart_NativeArguments args) { |
const char* filename = |
DartUtils::GetStringValue(Dart_GetNativeArgument(args, 0)); |