Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(707)

Unified Diff: runtime/bin/file.h

Issue 2761673002: [dart:io][windows] Use WriteFile instead of _write (Closed)
Patch Set: Format stdio.dart Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file.h
diff --git a/runtime/bin/file.h b/runtime/bin/file.h
index 8c859f70eaac332eb37eaece6f95079a2034c96c..5bef22c92c33a9b0ebe1570c5a5ad1fea32f0019 100644
--- a/runtime/bin/file.h
+++ b/runtime/bin/file.h
@@ -60,13 +60,6 @@ class File : public ReferenceCounted<File> {
kDartWriteOnlyAppend = 4
};
- // These values have to be kept in sync with the values of
- // _FileTranslation.text and _FileTranslation.binary in file_impl.dart
- enum DartFileTranslation {
- kText = 0,
- kBinary = 1,
- };
-
enum Type { kIsFile = 0, kIsDirectory = 1, kIsLink = 2, kDoesNotExist = 3 };
enum Identical { kIdentical = 0, kDifferent = 1, kError = 2 };
@@ -142,10 +135,6 @@ class File : public ReferenceCounted<File> {
// Set the byte position in the file.
bool SetPosition(int64_t position);
- // Set the translation mode of the file. This is currently a no-op unless the
- // file is for a terminal on Windows.
- void SetTranslation(DartFileTranslation translation);
-
// Truncate (or extend) the file to the given length in bytes.
bool Truncate(int64_t length);
« no previous file with comments | « no previous file | runtime/bin/file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698