| Index: base/file_util_posix.cc
|
| diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
|
| index 7722a5e608bba2a19b0dd3d0c7b27104cee85766..0ffa6247a2f048b8039161d8eaf56e9d55097505 100644
|
| --- a/base/file_util_posix.cc
|
| +++ b/base/file_util_posix.cc
|
| @@ -396,34 +396,6 @@ bool DirectoryExists(const FilePath& path) {
|
| return false;
|
| }
|
|
|
| -// TODO(erikkay): implement
|
| -#if 0
|
| -bool GetFileCreationLocalTimeFromHandle(int fd,
|
| - LPSYSTEMTIME creation_time) {
|
| - if (!file_handle)
|
| - return false;
|
| -
|
| - FILETIME utc_filetime;
|
| - if (!GetFileTime(file_handle, &utc_filetime, NULL, NULL))
|
| - return false;
|
| -
|
| - FILETIME local_filetime;
|
| - if (!FileTimeToLocalFileTime(&utc_filetime, &local_filetime))
|
| - return false;
|
| -
|
| - return !!FileTimeToSystemTime(&local_filetime, creation_time);
|
| -}
|
| -
|
| -bool GetFileCreationLocalTime(const std::string& filename,
|
| - LPSYSTEMTIME creation_time) {
|
| - ScopedHandle file_handle(
|
| - CreateFile(filename.c_str(), GENERIC_READ,
|
| - FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, NULL,
|
| - OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL));
|
| - return GetFileCreationLocalTimeFromHandle(file_handle.Get(), creation_time);
|
| -}
|
| -#endif
|
| -
|
| bool ReadFromFD(int fd, char* buffer, size_t bytes) {
|
| size_t total_read = 0;
|
| while (total_read < bytes) {
|
|
|