# HG changeset patch # User Mads Kiilerich # Date 2012-12-12 17:13:31 # Node ID cd25fa6f4008108613eea393f92985f07bd18e24 # Parent 291be8fa4d4f1c1ac00d15c532cd89674fb0c777 remove unused function get_repo_paths It should probably handle removed repositories somehow if it should live on. diff --git a/rhodecode/lib/vcs/utils/helpers.py b/rhodecode/lib/vcs/utils/helpers.py --- a/rhodecode/lib/vcs/utils/helpers.py +++ b/rhodecode/lib/vcs/utils/helpers.py @@ -96,21 +96,6 @@ def get_scms_for_path(path): 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``.