Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(935)

Unified Diff: net/disk_cache/simple/simple_backend_impl.cc

Issue 63153003: mac: Prepare for -Wunused-functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/cookies/cookie_monster.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_backend_impl.cc
diff --git a/net/disk_cache/simple/simple_backend_impl.cc b/net/disk_cache/simple/simple_backend_impl.cc
index 8856a2d7194d05afae23f62482957cc15aa46ad3..798e05329ffa361a74d72790cdf519e1ed53ebde 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) {
« no previous file with comments | « net/cookies/cookie_monster.cc ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698