Index: base/file_util.cc |
diff --git a/base/file_util.cc b/base/file_util.cc |
index 5567f74bff03ca08b51324293d63a1545e532190..16f47cc15401bab80c46a8e6f15467da2ed8847d 100644 |
--- a/base/file_util.cc |
+++ b/base/file_util.cc |
@@ -37,28 +37,6 @@ namespace file_util { |
bool g_bug108724_debug = false; |
-bool EndsWithSeparator(const FilePath& path) { |
- FilePath::StringType value = path.value(); |
- if (value.empty()) |
- return false; |
- |
- return FilePath::IsSeparator(value[value.size() - 1]); |
-} |
- |
-bool EnsureEndsWithSeparator(FilePath* path) { |
- if (!DirectoryExists(*path)) |
- return false; |
- |
- if (EndsWithSeparator(*path)) |
- return true; |
- |
- FilePath::StringType& path_str = |
- const_cast<FilePath::StringType&>(path->value()); |
- path_str.append(&FilePath::kSeparators[0], 1); |
- |
- return true; |
-} |
- |
void InsertBeforeExtension(FilePath* path, const FilePath::StringType& suffix) { |
FilePath::StringType& value = |
const_cast<FilePath::StringType&>(path->value()); |
@@ -289,33 +267,6 @@ int GetUniquePathNumber( |
return -1; |
} |
-bool ContainsPath(const FilePath &parent, const FilePath& child) { |
- FilePath abs_parent = FilePath(parent); |
- FilePath abs_child = FilePath(child); |
- |
- if (!file_util::AbsolutePath(&abs_parent) || |
- !file_util::AbsolutePath(&abs_child)) |
- return false; |
- |
-#if defined(OS_WIN) |
- // file_util::AbsolutePath() does not flatten case on Windows, so we must do |
- // a case-insensitive compare. |
- if (!StartsWith(abs_child.value(), abs_parent.value(), false)) |
-#else |
- if (!StartsWithASCII(abs_child.value(), abs_parent.value(), true)) |
-#endif |
- return false; |
- |
- // file_util::AbsolutePath() normalizes '/' to '\' on Windows, so we only need |
- // to check kSeparators[0]. |
- if (abs_child.value().length() <= abs_parent.value().length() || |
- abs_child.value()[abs_parent.value().length()] != |
- FilePath::kSeparators[0]) |
- return false; |
- |
- return true; |
-} |
- |
int64 ComputeDirectorySize(const FilePath& root_path) { |
int64 running_size = 0; |
FileEnumerator file_iter(root_path, true, FileEnumerator::FILES); |