Commit 9fd8d619 authored by Kenichi Ishibashi's avatar Kenichi Ishibashi Committed by Commit Bot

Remove unused ServiceWorkerStorage::PurgeResources()

ServiceWorkerStorage had two PurgeResources() methods but only
one is used. Remove unused one.

Bug: N/A
Change-Id: Ie53a804cde9dac815e93106e7462faa349f337f1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2444769Reviewed-by: default avatarHiroki Nakagawa <nhiroki@chromium.org>
Commit-Queue: Kenichi Ishibashi <bashi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#813068}
parent 17e0c224
......@@ -1064,12 +1064,6 @@ void ServiceWorkerStorage::Disable() {
disk_cache_->Disable();
}
void ServiceWorkerStorage::PurgeResources(const ResourceList& resources) {
if (!has_checked_for_stale_resources_)
DeleteStaleResources();
StartPurgingResources(resources);
}
void ServiceWorkerStorage::PurgeResources(
const std::vector<int64_t>& resource_ids) {
if (!has_checked_for_stale_resources_)
......
......@@ -278,12 +278,11 @@ class CONTENT_EXPORT ServiceWorkerStorage {
void Disable();
// Schedules deleting |resources| from the disk cache and removing their keys
// as purgeable resources from the service worker database. It's OK to call
// this for resources that don't have purgeable resource keys, like
// Schedules deleting `resource_ids` from the disk cache and removing their
// keys as purgeable resources from the service worker database. It's OK to
// call this for resources that don't have purgeable resource keys, like
// uncommitted resources, as long as the caller does its own cleanup to remove
// the uncommitted resource keys.
void PurgeResources(const ResourceList& resources);
void PurgeResources(const std::vector<int64_t>& resource_ids);
// Applies |policy_updates|.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment