From 9bcaa2ef8e6e8ca101ebd7cfdf3ccce342732fcb Mon Sep 17 00:00:00 2001 From: Shreya Date: Tue, 4 May 2021 13:05:41 +0530 Subject: [PATCH] Remove unused `did_exploit_type_succeed()` from `monkey_island/cc/services/reporting/report.py` --- monkey/monkey_island/cc/services/reporting/report.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/monkey/monkey_island/cc/services/reporting/report.py b/monkey/monkey_island/cc/services/reporting/report.py index ade56e64e..5a27b8933 100644 --- a/monkey/monkey_island/cc/services/reporting/report.py +++ b/monkey/monkey_island/cc/services/reporting/report.py @@ -763,12 +763,3 @@ class ReportService: if ReportService.is_latest_report_exists(): return ReportService.decode_dot_char_before_mongo_insert(mongo.db.report.find_one()) return safe_generate_regular_report() - - @staticmethod - def did_exploit_type_succeed(exploit_type): - return ( - mongo.db.edge.count( - {"exploits": {"$elemMatch": {"exploiter": exploit_type, "result": True}}}, limit=1 - ) - > 0 - )