remove unused function
authorHasan Wan <hasan.wan@intel.com>
Mon, 6 Jan 2014 02:57:00 +0000 (02:57 +0000)
committerHasan Wan <hasan.wan@intel.com>
Thu, 9 Jan 2014 07:24:52 +0000 (09:24 +0200)
Change-Id: I99a3c65d00163b78df2885d1850c6f4e94b99c2d
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
job_create_snapshot.py

index 1e4325d..00329b6 100755 (executable)
@@ -104,20 +104,6 @@ def make_repo(project, repo, backenddb, base_path,
             'imagedata': repomaker.imagedata
         }
 
-def get_published_repo(repo_path_base, time_stamp):
-    """ Search publised repository
-    Args:
-         repo_path_base (str): the repo location on file systems
-         time_stamp (str): the time stamp of sbumit tag
-    """
-    ret_list = []
-    if os.path.isdir(repo_path_base):
-        for dir_name in os.listdir(repo_path_base):
-            if dir_name.endswith(time_stamp):
-                ret_list.append(os.path.join(repo_path_base, dir_name))
-
-    return ret_list
-
 def main():
     """Script entry point."""