summaryrefslogtreecommitdiffstats
path: root/base/file_util_win.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-26 01:40:12 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-26 01:40:12 +0000
commitb33f1d943fd420857d9c5988ce1f4598f9a8765a (patch)
tree8bb2ca934346bb21198ca95c5294d15643181662 /base/file_util_win.cc
parentc06f3007c6f5f565501d33343de89c229f356e7a (diff)
downloadchromium_src-b33f1d943fd420857d9c5988ce1f4598f9a8765a.zip
chromium_src-b33f1d943fd420857d9c5988ce1f4598f9a8765a.tar.gz
chromium_src-b33f1d943fd420857d9c5988ce1f4598f9a8765a.tar.bz2
file_util: Convert the wstring version of IsDirectoryEmpty to FilePath.
BUG=24672 TEST=compiles Review URL: http://codereview.chromium.org/2153002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_win.cc')
-rw-r--r--base/file_util_win.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/base/file_util_win.cc b/base/file_util_win.cc
index fb65feb..fcad39c 100644
--- a/base/file_util_win.cc
+++ b/base/file_util_win.cc
@@ -431,15 +431,6 @@ bool TaskbarUnpinShortcutLink(const wchar_t* shortcut) {
return result > 32;
}
-bool IsDirectoryEmpty(const std::wstring& dir_path) {
- FileEnumerator files(FilePath(dir_path), false,
- static_cast<FileEnumerator::FILE_TYPE>(
- FileEnumerator::FILES | FileEnumerator::DIRECTORIES));
- if (files.Next().value().empty())
- return true;
- return false;
-}
-
bool GetTempDir(FilePath* path) {
wchar_t temp_path[MAX_PATH + 1];
DWORD path_len = ::GetTempPath(MAX_PATH, temp_path);