diff --git a/src/tribler/core/components/torrent_checker/torrent_checker/utils.py b/src/tribler/core/components/torrent_checker/torrent_checker/utils.py index 8a1798dfc27..30dc8857ebc 100644 --- a/src/tribler/core/components/torrent_checker/torrent_checker/utils.py +++ b/src/tribler/core/components/torrent_checker/torrent_checker/utils.py @@ -34,15 +34,3 @@ def aggregate_responses_for_infohash(infohash: bytes, responses: List[TrackerRes if health.infohash == infohash and health > result: result = health return result - - -def aggregate_health_by_infohash(health_list: List[HealthInfo]) -> List[HealthInfo]: - """ - For each infohash in the health list, finds the "best" health info (with the max number of seeders) - """ - d: Dict[bytes, HealthInfo] = {} - for health in health_list: - infohash = health.infohash - if infohash not in d or health.seeders > d[infohash].seeders: - d[infohash] = health - return list(d.values())