From 4fb22427f83d29bcd65f6ab26f569a1ec32b5cd4 Mon Sep 17 00:00:00 2001
From: Fabrice Le Goff <fabrice.le.goff@cern.ch>
Date: Mon, 21 Mar 2022 15:34:10 +0100
Subject: [PATCH] remove code used to support very old helper files

---
 Script/cs/Threads/ManagerThread.py | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/Script/cs/Threads/ManagerThread.py b/Script/cs/Threads/ManagerThread.py
index fff87b0..ac4d32a 100644
--- a/Script/cs/Threads/ManagerThread.py
+++ b/Script/cs/Threads/ManagerThread.py
@@ -48,19 +48,6 @@ class ManagerThread(threading.Thread):
         # Check the validity of all the helper files from previous runs
         self.logger.debug('Check helper files from previous run')
 
-        for folder in self.conf.DirList:
-            pattern = '**/*' if self.conf.RecursiveSourceFolder else '*'
-            for oldfile in pathlib.Path(folder).glob(pattern):
-                if oldfile.is_dir(): continue
-                if oldfile.suffix in (Constants.tobecopied_ext, Constants.copied_ext,
-                        Constants.copying_ext, Constants.problematic_ext):
-                    to_remove = False
-                    with open(oldfile) as of:
-                        if len(of.readlines()) < 4:
-                            to_remove = True
-                    if to_remove:
-                        os.remove(oldfile)
-
         # Handle .COPIED files from previous run
         self.logger.info('Handle .COPIED files from previous run')
         for folder in self.conf.DirList:
-- 
GitLab