summaryrefslogtreecommitdiffstats
path: root/base/file_util.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-21 21:41:30 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-21 21:41:30 +0000
commit84b604b1b6950eceb84e664d3e93567b6aab22b3 (patch)
treec885d8b3c2b863948d77bf478d661ed397a176db /base/file_util.cc
parent43efc50cf60427e9c6cdc77116c5807fe66ee070 (diff)
downloadchromium_src-84b604b1b6950eceb84e664d3e93567b6aab22b3.zip
chromium_src-84b604b1b6950eceb84e664d3e93567b6aab22b3.tar.gz
chromium_src-84b604b1b6950eceb84e664d3e93567b6aab22b3.tar.bz2
Remove the wstring versions of GetFileInfo, GetFileSize, GetTempDir.
TEST=compiles BUG=24672 Review URL: http://codereview.chromium.org/1753004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45246 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.cc')
-rw-r--r--base/file_util.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/base/file_util.cc b/base/file_util.cc
index d2e6575..95f334e 100644
--- a/base/file_util.cc
+++ b/base/file_util.cc
@@ -391,25 +391,12 @@ std::wstring GetFileExtensionFromPath(const std::wstring& path) {
return UTF8ToWide(extension);
#endif
}
-bool GetFileInfo(const std::wstring& file_path, FileInfo* results) {
- return GetFileInfo(FilePath::FromWStringHack(file_path), results);
-}
std::wstring GetFilenameFromPath(const std::wstring& path) {
if (path.empty() || EndsWithSeparator(path))
return std::wstring();
return FilePath::FromWStringHack(path).BaseName().ToWStringHack();
}
-bool GetFileSize(const std::wstring& file_path, int64* file_size) {
- return GetFileSize(FilePath::FromWStringHack(file_path), file_size);
-}
-bool GetTempDir(std::wstring* path_str) {
- FilePath path;
- if (!GetTempDir(&path))
- return false;
- *path_str = path.ToWStringHack();
- return true;
-}
FILE* OpenFile(const std::wstring& filename, const char* mode) {
return OpenFile(FilePath::FromWStringHack(filename), mode);
}