Revisions to "First pass of ImageWriter"
Cleanup from accidental commit of:
commit db4d54081f09abcbe97ffdf615874f2809a9e777
Author: Brian Carlstrom <bdc@google.com>
Date: Tue Aug 9 12:18:28 2011 -0700
First pass of ImageWriter
Change-Id: I0168c05d229e0c7f8059dc1ab1b46dc2dc426c53
diff --git a/src/os_linux.cc b/src/os_linux.cc
index da8ea38..8f5f56a 100644
--- a/src/os_linux.cc
+++ b/src/os_linux.cc
@@ -11,7 +11,7 @@
namespace art {
-File* OS::OpenBinaryFile(const char* name, bool writable) {
+File* OS::OpenFile(const char* name, bool writable) {
int flags = O_RDONLY;
if (writable) {
flags = (O_RDWR | O_CREAT | O_TRUNC);
@@ -23,10 +23,6 @@
return new LinuxFile(name, fd, true);
}
-File* OS::OpenTextFile(const char* name, bool writable) {
- return OpenBinaryFile(name, writable);
-}
-
File* OS::FileFromFd(const char* name, int fd) {
return new LinuxFile(name, fd, false);
}