summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/cache_util_win.cc
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-18 12:34:24 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-18 12:34:24 +0000
commit0e91dd2a1cec40c6fa0390c890e10dc75398de34 (patch)
treef4385248c0abb048ec718cb555b5287847bc4429 /net/disk_cache/cache_util_win.cc
parentfadf97f2f16f6b3ad2756cd07657c4f47172da92 (diff)
downloadchromium_src-0e91dd2a1cec40c6fa0390c890e10dc75398de34.zip
chromium_src-0e91dd2a1cec40c6fa0390c890e10dc75398de34.tar.gz
chromium_src-0e91dd2a1cec40c6fa0390c890e10dc75398de34.tar.bz2
Move GetFreeDiskSpace to SysInfo.
Patch from Pawel Hajdan Jr. Review URL: http://codereview.chromium.org/3141 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2359 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/cache_util_win.cc')
-rw-r--r--net/disk_cache/cache_util_win.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/net/disk_cache/cache_util_win.cc b/net/disk_cache/cache_util_win.cc
index dd4de1d..377cbbf 100644
--- a/net/disk_cache/cache_util_win.cc
+++ b/net/disk_cache/cache_util_win.cc
@@ -38,17 +38,6 @@ void DeleteFiles(const wchar_t* path, const wchar_t* search_name) {
namespace disk_cache {
-int64 GetFreeDiskSpace(const std::wstring& path) {
- ULARGE_INTEGER available, total, free;
- if (!GetDiskFreeSpaceExW(path.c_str(), &available, &total, &free)) {
- return -1;
- }
- int64 rv = static_cast<int64>(available.QuadPart);
- if (rv < 0)
- rv = kint64max;
- return rv;
-}
-
bool MoveCache(const std::wstring& from_path, const std::wstring& to_path) {
// I don't want to use the shell version of move because if something goes
// wrong, that version will attempt to move file by file and fail at the end.