| Index: base/file_util.cc
|
| diff --git a/base/file_util.cc b/base/file_util.cc
|
| index 5f186742a71aa3da5811faab50b04d7d69a21dab..c366a76e49e416054d0f9ec2cb9409141ec7aacb 100644
|
| --- a/base/file_util.cc
|
| +++ b/base/file_util.cc
|
| @@ -26,34 +26,6 @@ const FilePath::CharType kExtensionSeparator = FILE_PATH_LITERAL('.');
|
|
|
| namespace file_util {
|
|
|
| -void PathComponents(const FilePath& path,
|
| - std::vector<FilePath::StringType>* components) {
|
| - DCHECK(components);
|
| - if (!components)
|
| - return;
|
| -
|
| - FilePath::StringType path_str = path.value();
|
| - FilePath::StringType::size_type start = 0;
|
| - FilePath::StringType::size_type end =
|
| - path_str.find_first_of(FilePath::kSeparators);
|
| -
|
| - // If the path starts with a separator, add it to components.
|
| - if (end == start) {
|
| - components->push_back(FilePath::StringType(path_str, 0, 1));
|
| - start = end + 1;
|
| - end = path_str.find_first_of(FilePath::kSeparators, start);
|
| - }
|
| - while (end != FilePath::StringType::npos) {
|
| - FilePath::StringType component =
|
| - FilePath::StringType(path_str, start, end - start);
|
| - components->push_back(component);
|
| - start = end + 1;
|
| - end = path_str.find_first_of(FilePath::kSeparators, start);
|
| - }
|
| -
|
| - components->push_back(FilePath::StringType(path_str, start));
|
| -}
|
| -
|
| bool EndsWithSeparator(const FilePath& path) {
|
| FilePath::StringType value = path.value();
|
| if (value.empty())
|
|
|