From 123aa28e870e3b6d72f818881f30f70b8669cdaf Mon Sep 17 00:00:00 2001 From: Jean-Philippe Ouellet Date: Thu, 30 Nov 2017 06:57:03 -0500 Subject: [PATCH] Remove dead code --- qubesadmin/tools/qvm_template_postprocess.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/qubesadmin/tools/qvm_template_postprocess.py b/qubesadmin/tools/qvm_template_postprocess.py index 7c1100d..f5e1642 100644 --- a/qubesadmin/tools/qvm_template_postprocess.py +++ b/qubesadmin/tools/qvm_template_postprocess.py @@ -57,12 +57,6 @@ parser.add_argument('dir', action='store', help='Template directory') -def move_if_exists(source, dest_dir): - '''Move file/directory if exists''' - if os.path.exists(source): - shutil.move(source, os.path.join(dest_dir, os.path.basename(source))) - - def get_root_img_size(source_dir): '''Extract size of root.img to be imported''' root_path = os.path.join(source_dir, 'root.img')