# HG changeset patch # User Mads Kiilerich # Date 1355332411 -3600 # Node ID cd25fa6f4008108613eea393f92985f07bd18e24 # Parent 291be8fa4d4f1c1ac00d15c532cd89674fb0c777 remove unused function get_repo_paths It should probably handle removed repositories somehow if it should live on. diff -r 291be8fa4d4f -r cd25fa6f4008 rhodecode/lib/vcs/utils/helpers.py --- a/rhodecode/lib/vcs/utils/helpers.py Wed Dec 12 18:12:18 2012 +0100 +++ b/rhodecode/lib/vcs/utils/helpers.py Wed Dec 12 18:13:31 2012 +0100 @@ -96,21 +96,6 @@ return result -def get_repo_paths(path): - """ - Returns path's subdirectories which seems to be a repository. - """ - repo_paths = [] - dirnames = (os.path.abspath(dirname) for dirname in os.listdir(path)) - for dirname in dirnames: - try: - get_scm(dirname) - repo_paths.append(dirname) - except VCSError: - pass - return repo_paths - - def run_command(cmd, *args): """ Runs command on the system with given ``args``.