From 80ad7f865a504ae7c0d0edb1a05ce56da5da4236 Mon Sep 17 00:00:00 2001 From: Daan Selen Date: Thu, 25 Sep 2025 15:40:58 +0200 Subject: [PATCH] refac: remove seemingly unneeded function --- meshbook.py | 3 +-- modules/utilities.py | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/meshbook.py b/meshbook.py index f7ec5d4..6129cc1 100644 --- a/meshbook.py +++ b/meshbook.py @@ -72,8 +72,7 @@ async def gather_targets(args: argparse.Namespace, os_categories, target_os, ignore_categorisation, - target_tag, - add_processed_devices + target_tag ) await add_processed_devices(processed) diff --git a/modules/utilities.py b/modules/utilities.py index 9744cc0..1d9efd0 100644 --- a/modules/utilities.py +++ b/modules/utilities.py @@ -121,8 +121,7 @@ class utilities: os_categories: dict, target_os: str, ignore_categorisation: bool, - target_tag: str, - add_processed_devices=None) -> dict: + target_tag: str) -> dict: """ Processes a single device or pseudo-target against group_list, filters matches by OS and tags, and adds processed devices. @@ -141,8 +140,6 @@ class utilities: processed = await utilities.filter_targets( matched_devices, os_categories, target_os, ignore_categorisation, target_tag ) - if add_processed_devices: - await add_processed_devices(processed) return processed # No matches found