refac: remove seemingly unneeded function

This commit is contained in:
Daan Selen
2025-09-25 15:40:58 +02:00
parent 9d2999476d
commit 80ad7f865a
2 changed files with 2 additions and 6 deletions
+1 -2
View File
@@ -72,8 +72,7 @@ async def gather_targets(args: argparse.Namespace,
os_categories, os_categories,
target_os, target_os,
ignore_categorisation, ignore_categorisation,
target_tag, target_tag
add_processed_devices
) )
await add_processed_devices(processed) await add_processed_devices(processed)
+1 -4
View File
@@ -121,8 +121,7 @@ class utilities:
os_categories: dict, os_categories: dict,
target_os: str, target_os: str,
ignore_categorisation: bool, ignore_categorisation: bool,
target_tag: str, target_tag: str) -> dict:
add_processed_devices=None) -> dict:
""" """
Processes a single device or pseudo-target against group_list, Processes a single device or pseudo-target against group_list,
filters matches by OS and tags, and adds processed devices. filters matches by OS and tags, and adds processed devices.
@@ -141,8 +140,6 @@ class utilities:
processed = await utilities.filter_targets( processed = await utilities.filter_targets(
matched_devices, os_categories, target_os, ignore_categorisation, target_tag matched_devices, os_categories, target_os, ignore_categorisation, target_tag
) )
if add_processed_devices:
await add_processed_devices(processed)
return processed return processed
# No matches found # No matches found