diff options
Diffstat (limited to 'base/file_util.cc')
-rw-r--r-- | base/file_util.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/base/file_util.cc b/base/file_util.cc index bae6535..b611716 100644 --- a/base/file_util.cc +++ b/base/file_util.cc @@ -402,16 +402,6 @@ void UpOneDirectory(std::wstring* dir) { if (directory.value() != FilePath::kCurrentDirectory) *dir = directory.ToWStringHack(); } -void UpOneDirectoryOrEmpty(std::wstring* dir) { - FilePath path = FilePath::FromWStringHack(*dir); - FilePath directory = path.DirName(); - // If there is no separator, we will get back kCurrentDirectory. - // In this case, clear dir. - if (directory == path || directory.value() == FilePath::kCurrentDirectory) - dir->clear(); - else - *dir = directory.ToWStringHack(); -} int WriteFile(const std::wstring& filename, const char* data, int size) { return WriteFile(FilePath::FromWStringHack(filename), data, size); } |