From b4f71a8d7e0186a717354e1064a23d5159950846 Mon Sep 17 00:00:00 2001 From: "deanm@chromium.org" Date: Wed, 17 Sep 2008 15:32:03 +0000 Subject: 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 --- net/disk_cache/cache_util_win.cc | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'net/disk_cache/cache_util_win.cc') 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(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. -- cgit v1.1