changeset 645:1e19096f85d3

git_handler: remove collect_gitlinks now that it is unused
author Siddharth Agarwal <sid0@fb.com>
date Sat, 15 Feb 2014 16:21:49 -0800
parents 6d7594d74575
children 104f536be5c7
files hggit/git_handler.py
diffstat 1 files changed, 0 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/hggit/git_handler.py
+++ b/hggit/git_handler.py
@@ -1282,23 +1282,6 @@
 
         return files, gitlinks
 
-    def collect_gitlinks(self, tree_id):
-        """Walk the tree and collect all gitlink entries
-          :param tree_id: sha of the commit tree
-          :return: list of tuples (commit sha, full entry path)
-        """
-        queue = [(tree_id, '')]
-        gitlinks = []
-        while queue:
-            e, path = queue.pop(0)
-            o = self.git.object_store[e]
-            for (name, mode, sha) in o.iteritems():
-                if mode == S_IFGITLINK:
-                    gitlinks.append((posixpath.join(path, name), sha))
-                elif stat.S_ISDIR(mode):
-                    queue.append((sha, posixpath.join(path, name)))
-        return gitlinks
-
     def parse_gitmodules(self, tree_obj):
         """Parse .gitmodules from a git tree specified by tree_obj