summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-15 01:59:15 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-15 01:59:15 +0000
commitcdb70a70ad4c6076fff85effeb61cfaef2bac429 (patch)
treec685fa64707262a40d5f11cf67aea4f9ea1d120b /base
parentb88a291b41a2232943116c95c215442be3d5f24e (diff)
downloadchromium_src-cdb70a70ad4c6076fff85effeb61cfaef2bac429.zip
chromium_src-cdb70a70ad4c6076fff85effeb61cfaef2bac429.tar.gz
chromium_src-cdb70a70ad4c6076fff85effeb61cfaef2bac429.tar.bz2
Remove some deprecated file_util wstring functions.
death to the wstring TEST=trybots BUG=none Review URL: http://codereview.chromium.org/276016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29078 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/file_util.cc14
-rw-r--r--base/file_util.h8
2 files changed, 0 insertions, 22 deletions
diff --git a/base/file_util.cc b/base/file_util.cc
index d3a989b5..a39d1eb 100644
--- a/base/file_util.cc
+++ b/base/file_util.cc
@@ -322,10 +322,6 @@ bool ContentsEqual(const std::wstring& filename1,
return ContentsEqual(FilePath::FromWStringHack(filename1),
FilePath::FromWStringHack(filename2));
}
-bool CopyFile(const std::wstring& from_path, const std::wstring& to_path) {
- return CopyFile(FilePath::FromWStringHack(from_path),
- FilePath::FromWStringHack(to_path));
-}
bool CreateDirectory(const std::wstring& full_path) {
return CreateDirectory(FilePath::FromWStringHack(full_path));
}
@@ -345,9 +341,6 @@ bool CreateNewTempDirectory(const std::wstring& prefix,
bool Delete(const std::wstring& path, bool recursive) {
return Delete(FilePath::FromWStringHack(path), recursive);
}
-bool DirectoryExists(const std::wstring& path) {
- return DirectoryExists(FilePath::FromWStringHack(path));
-}
bool EndsWithSeparator(std::wstring* path) {
return EndsWithSeparator(FilePath::FromWStringHack(*path));
}
@@ -389,16 +382,9 @@ bool GetTempDir(std::wstring* path_str) {
*path_str = path.ToWStringHack();
return true;
}
-bool Move(const std::wstring& from_path, const std::wstring& to_path) {
- return Move(FilePath::FromWStringHack(from_path),
- FilePath::FromWStringHack(to_path));
-}
FILE* OpenFile(const std::wstring& filename, const char* mode) {
return OpenFile(FilePath::FromWStringHack(filename), mode);
}
-bool PathExists(const std::wstring& path) {
- return PathExists(FilePath::FromWStringHack(path));
-}
int ReadFile(const std::wstring& filename, char* data, int size) {
return ReadFile(FilePath::FromWStringHack(filename), data, size);
}
diff --git a/base/file_util.h b/base/file_util.h
index 37634b9..af08d4f 100644
--- a/base/file_util.h
+++ b/base/file_util.h
@@ -133,8 +133,6 @@ bool Delete(const std::wstring& path, bool recursive);
// on different volumes, this will attempt to copy and delete. Returns
// true for success.
bool Move(const FilePath& from_path, const FilePath& to_path);
-// Deprecated temporary compatibility function.
-bool Move(const std::wstring& from_path, const std::wstring& to_path);
// Renames file |from_path| to |to_path|. Both paths must be on the same
// volume, or the function will fail. Destination file will be created
@@ -145,8 +143,6 @@ bool ReplaceFile(const FilePath& from_path, const FilePath& to_path);
// Copies a single file. Use CopyDirectory to copy directories.
bool CopyFile(const FilePath& from_path, const FilePath& to_path);
-// Deprecated temporary compatibility function.
-bool CopyFile(const std::wstring& from_path, const std::wstring& to_path);
// Copies the given path, and optionally all subdirectories and their contents
// as well.
@@ -164,16 +160,12 @@ bool CopyDirectory(const std::wstring& from_path, const std::wstring& to_path,
// Returns true if the given path exists on the local filesystem,
// false otherwise.
bool PathExists(const FilePath& path);
-// Deprecated temporary compatibility function.
-bool PathExists(const std::wstring& path);
// Returns true if the given path is writable by the user, false otherwise.
bool PathIsWritable(const FilePath& path);
// Returns true if the given path exists and is a directory, false otherwise.
bool DirectoryExists(const FilePath& path);
-// Deprecated temporary compatibility function.
-bool DirectoryExists(const std::wstring& path);
#if defined(OS_WIN)
// Gets the creation time of the given file (expressed in the local timezone),