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-17 15:32:03 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-17 15:32:03 +0000
commitb4f71a8d7e0186a717354e1064a23d5159950846 (patch)
treeb82db787c0a34feb598c802a56730a37a2641e7d /net/disk_cache/cache_util_win.cc
parentdef7fce451d9f70ffa602d6e38524cb8ecc8adfa (diff)
downloadchromium_src-b4f71a8d7e0186a717354e1064a23d5159950846.zip
chromium_src-b4f71a8d7e0186a717354e1064a23d5159950846.tar.gz
chromium_src-b4f71a8d7e0186a717354e1064a23d5159950846.tar.bz2
Revision 2303 introduced AmountOfPhysicalMemory in SysInfo, so now GetSystemMemory in net/disk_cache/cache_util is redundant.
Patch from Pawel Hajdan Jr. Review URL: http://codereview.chromium.org/3103 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2306 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/cache_util_win.cc')
-rw-r--r--net/disk_cache/cache_util_win.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/net/disk_cache/cache_util_win.cc b/net/disk_cache/cache_util_win.cc
index e45388b..dd4de1d 100644
--- a/net/disk_cache/cache_util_win.cc
+++ b/net/disk_cache/cache_util_win.cc
@@ -49,19 +49,6 @@ int64 GetFreeDiskSpace(const std::wstring& path) {
return rv;
}
-int64 GetSystemMemory() {
- MEMORYSTATUSEX memory_info;
- memory_info.dwLength = sizeof(memory_info);
- if (!GlobalMemoryStatusEx(&memory_info)) {
- return -1;
- }
-
- int64 rv = static_cast<int64>(memory_info.ullTotalPhys);
- 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.