summaryrefslogtreecommitdiffstats
path: root/net/disk_cache
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-21 21:31:27 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-21 21:31:27 +0000
commit16f76563e2ad664612cb41c1c348f1a1afacd39b (patch)
treece3fc7d8ff1de19266ebdf802f22745568b44ef7 /net/disk_cache
parent2c839e74897807ed0727b7e038af6a37a6ac7ec0 (diff)
downloadchromium_src-16f76563e2ad664612cb41c1c348f1a1afacd39b.zip
chromium_src-16f76563e2ad664612cb41c1c348f1a1afacd39b.tar.gz
chromium_src-16f76563e2ad664612cb41c1c348f1a1afacd39b.tar.bz2
Fix a bunch of clang warnings/errors.
BUG=None TEST=None Review URL: http://codereview.chromium.org/3473006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache')
-rw-r--r--net/disk_cache/entry_impl.cc13
1 files changed, 0 insertions, 13 deletions
diff --git a/net/disk_cache/entry_impl.cc b/net/disk_cache/entry_impl.cc
index 5b65344..8d9fab6 100644
--- a/net/disk_cache/entry_impl.cc
+++ b/net/disk_cache/entry_impl.cc
@@ -64,19 +64,6 @@ void SyncCallback::Discard() {
OnFileIOComplete(0);
}
-// Clears buffer before offset and after valid_len, knowing that the size of
-// buffer is kMaxBlockSize.
-void ClearInvalidData(char* buffer, int offset, int valid_len) {
- DCHECK_GE(offset, 0);
- DCHECK_GE(valid_len, 0);
- DCHECK(disk_cache::kMaxBlockSize >= offset + valid_len);
- if (offset)
- memset(buffer, 0, offset);
- int end = disk_cache::kMaxBlockSize - offset - valid_len;
- if (end)
- memset(buffer + offset + valid_len, 0, end);
-}
-
const int kMaxBufferSize = 1024 * 1024; // 1 MB.
} // namespace