summaryrefslogtreecommitdiffstats
path: root/base/file_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/file_util.cc')
-rw-r--r--base/file_util.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/base/file_util.cc b/base/file_util.cc
index b611716..1689d5b 100644
--- a/base/file_util.cc
+++ b/base/file_util.cc
@@ -394,14 +394,6 @@ FILE* OpenFile(const std::wstring& filename, const char* mode) {
int ReadFile(const std::wstring& filename, char* data, int size) {
return ReadFile(FilePath::FromWStringHack(filename), data, size);
}
-void UpOneDirectory(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 don't change |dir|.
- if (directory.value() != FilePath::kCurrentDirectory)
- *dir = directory.ToWStringHack();
-}
int WriteFile(const std::wstring& filename, const char* data, int size) {
return WriteFile(FilePath::FromWStringHack(filename), data, size);
}