| Index: sdk/lib/io/file_impl.dart
|
| diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart
|
| index 668889293a99548c08afcc842104228631b3deb0..fd66fc1b6094de886ce9e268d819bb502b783fa3 100644
|
| --- a/sdk/lib/io/file_impl.dart
|
| +++ b/sdk/lib/io/file_impl.dart
|
| @@ -617,22 +617,6 @@ abstract class _RandomAccessFileOps {
|
| length();
|
| flush();
|
| lock(int lock, int start, int end);
|
| - setTranslation(int translation);
|
| -}
|
| -
|
| -/**
|
| - * The translation mode of a File.
|
| - *
|
| - * Whether the data written to a file should be interpreted as text
|
| - * or binary data. This distinction is only meaningful on platforms that
|
| - * recognize a difference, in particular on Windows.
|
| - */
|
| -enum _FileTranslation {
|
| - /// Data should be interpreted as text.
|
| - text,
|
| -
|
| - /// Data should be interpreted as binary data.
|
| - binary,
|
| }
|
|
|
| class _RandomAccessFile implements RandomAccessFile {
|
| @@ -646,12 +630,9 @@ class _RandomAccessFile implements RandomAccessFile {
|
| _FileResourceInfo _resourceInfo;
|
| _RandomAccessFileOps _ops;
|
|
|
| - _FileTranslation _translation;
|
| -
|
| _RandomAccessFile(int pointer, this.path) {
|
| _ops = new _RandomAccessFileOps(pointer);
|
| _resourceInfo = new _FileResourceInfo(this);
|
| - _translation = _FileTranslation.binary;
|
| _maybeConnectHandler();
|
| }
|
|
|
| @@ -1052,15 +1033,6 @@ class _RandomAccessFile implements RandomAccessFile {
|
| }
|
| }
|
|
|
| - _FileTranslation get translation => _translation;
|
| -
|
| - void set translation(_FileTranslation translation) {
|
| - if (_translation != translation) {
|
| - _ops.setTranslation(translation.index);
|
| - _translation = translation;
|
| - }
|
| - }
|
| -
|
| bool closed = false;
|
|
|
| // Calling this function will increase the reference count on the native
|
|
|