Home Home > GIT Browse > scripts
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Poirier <bpoirier@suse.com>2018-06-13 11:36:01 +0900
committerBenjamin Poirier <bpoirier@suse.com>2018-08-23 16:58:08 +0900
commit45100db1f9ad0a85776a1563567f62c5a8be399a (patch)
treeaadf09bb8ddf55b764702b6916e8fd1ba4a16d24
parent8effdc990a95c7f98ad39af510f062a76078b707 (diff)
scripts/git_sort/git_sort.py: Remove dead code
-rwxr-xr-xscripts/git_sort/git_sort.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/scripts/git_sort/git_sort.py b/scripts/git_sort/git_sort.py
index 48bb3a5a84..e832e906a6 100755
--- a/scripts/git_sort/git_sort.py
+++ b/scripts/git_sort/git_sort.py
@@ -566,28 +566,6 @@ class SortIndex(object):
raise GSKeyError
- def sort(self, mapping):
- """
- Returns an OrderedDict
- result[Head][]
- sorted values from the mapping which are found in Head
- """
- result = collections.OrderedDict([(head, [],) for head in self.history])
- for commit in list(mapping.keys()):
- try:
- ic = self.lookup(commit)
- except GSKeyError:
- continue
- else:
- result[ic.head].append((ic.index, mapping.pop(commit),))
-
- for head, entries in result.items():
- entries.sort(key=operator.itemgetter(0))
- result[head] = [e[1] for e in entries]
-
- return result
-
-
def describe(self, index):
"""
index must come from the mainline head (remotes[0]).