Skip to content

Commit

Permalink
Remove unused ThrottlingController::HasInterceptor
Browse files Browse the repository at this point in the history
(unused since https://crrev.com/c/3143699).

Change-Id: Ie1dbef6a8098a54aabd5171d39b10445f4eb9498
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3278013
Commit-Queue: Matt Menke <mmenke@chromium.org>
Reviewed-by: Matt Menke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/main@{#941697}
  • Loading branch information
aakalugin authored and Chromium LUCI CQ committed Nov 15, 2021
1 parent b31817c commit c25a0a0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
9 changes: 0 additions & 9 deletions services/network/throttling/throttling_controller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ void ThrottlingController::UnregisterNetLogSource(uint32_t net_log_source_id) {
instance().Unregister(net_log_source_id);
}

// static
bool ThrottlingController::HasInterceptor(
const base::UnguessableToken& throttling_profile_id) {
DCHECK_CALLED_ON_VALID_THREAD(instance().thread_checker_);

return instance().interceptors_.find(throttling_profile_id) !=
instance().interceptors_.end();
}

void ThrottlingController::Register(
uint32_t net_log_source_id,
const base::UnguessableToken& throttling_profile_id) {
Expand Down
5 changes: 0 additions & 5 deletions services/network/throttling/throttling_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ class COMPONENT_EXPORT(NETWORK_SERVICE) ThrottlingController {
// Unregister the NetLog source. This is called from ScopedThrottlingToken.
static void UnregisterNetLogSource(uint32_t net_log_source_id);

// Returns whether there is an interceptor for the profile ID. This is called
// from ScopedThrottlingToken.
static bool HasInterceptor(
const base::UnguessableToken& throttling_profile_id);

void Register(uint32_t net_log_source_id,
const base::UnguessableToken& throttling_profile_id);
void Unregister(uint32_t net_log_source_id);
Expand Down

0 comments on commit c25a0a0

Please sign in to comment.