island: Remove unneeded functions in monkey_island/cc/setup/data_dir.py

This commit is contained in:
Shreya Malviya 2021-10-20 16:49:52 +05:30
parent 4ec53cb1d1
commit b4c48e7cfb
1 changed files with 0 additions and 13 deletions

View File

@ -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)