summaryrefslogtreecommitdiffstats
path: root/net/disk_cache
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-07 18:47:20 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-07 18:47:20 +0000
commit4159e7f4840e961b69e4f9438a5858d0b3fe6e63 (patch)
tree014e23d7e937a99e6e9d98ca005622f8dfbe9935 /net/disk_cache
parent2cc986c47746f59aad961b0791fd1620ff599d70 (diff)
downloadchromium_src-4159e7f4840e961b69e4f9438a5858d0b3fe6e63.zip
chromium_src-4159e7f4840e961b69e4f9438a5858d0b3fe6e63.tar.gz
chromium_src-4159e7f4840e961b69e4f9438a5858d0b3fe6e63.tar.bz2
mac: Prepare for -Wunused-functions.
Mostly involves deleting hundreds of lines of unused code. BUG=315884 R=akalin@chromium.org, brettw@chromium.org, fischman@chromium.org, jamesr@chromium.org, sky@chromium.org, thestig@chromium.org TBR=piman, youngki Review URL: https://codereview.chromium.org/63153003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233646 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache')
-rw-r--r--net/disk_cache/simple/simple_backend_impl.cc27
1 files changed, 0 insertions, 27 deletions
diff --git a/net/disk_cache/simple/simple_backend_impl.cc b/net/disk_cache/simple/simple_backend_impl.cc
index 8856a2d..798e053 100644
--- a/net/disk_cache/simple/simple_backend_impl.cc
+++ b/net/disk_cache/simple/simple_backend_impl.cc
@@ -123,16 +123,6 @@ void MaybeHistogramFdLimit(net::CacheType cache_type) {
g_fd_limit_histogram_has_been_populated = true;
}
-// Must run on IO Thread.
-void DeleteBackendImpl(disk_cache::Backend** backend,
- const net::CompletionCallback& callback,
- int result) {
- DCHECK(*backend);
- delete *backend;
- *backend = NULL;
- callback.Run(result);
-}
-
// Detects if the files in the cache directory match the current disk cache
// backend type and version. If the directory contains no cache, occupies it
// with the fresh structure.
@@ -195,23 +185,6 @@ void RunOperationAndCallback(
operation_callback.Run(operation_result);
}
-// A short bindable thunk that Dooms an entry if it successfully opens.
-void DoomOpenedEntry(scoped_ptr<Entry*> in_entry,
- const net::CompletionCallback& doom_callback,
- int open_result) {
- DCHECK_NE(open_result, net::ERR_IO_PENDING);
- if (open_result == net::OK) {
- DCHECK(in_entry);
- SimpleEntryImpl* simple_entry = static_cast<SimpleEntryImpl*>(*in_entry);
- const int doom_result = simple_entry->DoomEntry(doom_callback);
- simple_entry->Close();
- if (doom_result != net::ERR_IO_PENDING)
- doom_callback.Run(doom_result);
- } else {
- doom_callback.Run(open_result);
- }
-}
-
void RecordIndexLoad(net::CacheType cache_type,
base::TimeTicks constructed_since,
int result) {