From 10e1177ef6b8c1a8cb9b14d41b3a8c9801de1bd7 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Wed, 21 Sep 2022 18:02:42 +0530 Subject: [PATCH] Island: Remove set_simulation_mode --- .../set_simulation_mode.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 monkey/monkey_island/cc/island_event_handlers/set_simulation_mode.py diff --git a/monkey/monkey_island/cc/island_event_handlers/set_simulation_mode.py b/monkey/monkey_island/cc/island_event_handlers/set_simulation_mode.py deleted file mode 100644 index da15a8ac0..000000000 --- a/monkey/monkey_island/cc/island_event_handlers/set_simulation_mode.py +++ /dev/null @@ -1,17 +0,0 @@ -from monkey_island.cc.models import IslandMode -from monkey_island.cc.repository import ISimulationRepository - - -class set_simulation_mode: - """ - Callable class that sets the Island's mode - """ - - def __init__( - self, - simulation_repository: ISimulationRepository, - ): - self._simulation_repository = simulation_repository - - def __call__(self, mode: IslandMode): - self._simulation_repository.set_mode(mode)