From b4c48e7cfb3ef0ffb41daf7ed5a740127d538a35 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Wed, 20 Oct 2021 16:49:52 +0530 Subject: [PATCH] island: Remove unneeded functions in monkey_island/cc/setup/data_dir.py --- monkey/monkey_island/cc/setup/data_dir.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/monkey/monkey_island/cc/setup/data_dir.py b/monkey/monkey_island/cc/setup/data_dir.py index cc810f9da..245a4f14c 100644 --- a/monkey/monkey_island/cc/setup/data_dir.py +++ b/monkey/monkey_island/cc/setup/data_dir.py @@ -41,16 +41,3 @@ def _data_dir_version_mismatch_exists(data_dir_path: Path) -> bool: island_version = get_version() return island_version != data_dir_version - - -# def _rename_data_dir(data_dir_path: Path): -# backup_path = _get_backup_path(data_dir_path) -# if backup_path.is_dir(): -# shutil.rmtree(backup_path) -# Path(data_dir_path).replace(backup_path) -# logger.info(f"Old data directory renamed to {backup_path}.") - - -# def _get_backup_path(data_dir_path: Path) -> Path: -# backup_dir_name = data_dir_path.name + _data_dir_backup_suffix -# return Path(data_dir_path.parent, backup_dir_name)