From cd58e37b25ae42aea55db2ed57c09c1263054fd0 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Mon, 8 Jan 2024 08:38:52 -0500 Subject: [PATCH] Remove unused `DomainBlock#affected_accounts_count` method (#28642) --- app/models/domain_block.rb | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/models/domain_block.rb b/app/models/domain_block.rb index f8058324a34..8da099256a5 100644 --- a/app/models/domain_block.rb +++ b/app/models/domain_block.rb @@ -85,11 +85,6 @@ class DomainBlock < ApplicationRecord (reject_media || !other_block.reject_media) && (reject_reports || !other_block.reject_reports) end - def affected_accounts_count - scope = suspend? ? accounts.where(suspended_at: created_at) : accounts.where(silenced_at: created_at) - scope.count - end - def public_domain return domain unless obfuscate?