]> arthur.barton.de Git - bup.git/commitdiff
git: remove get_commit_dates()
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 28 Dec 2020 21:56:02 +0000 (22:56 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 18 Apr 2021 18:12:49 +0000 (13:12 -0500)
This function is unused.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
[rlb@defaultvalue.org: likely orphaned by vfs overhaul]

lib/bup/git.py

index 1a3ff1788e7aafad6f58924e3355156251307b97..caa90fed003b9acdd06e33581792c43079e35f56 100644 (file)
@@ -1041,17 +1041,6 @@ def rev_list(ref_or_refs, parse=None, format=None, repo_dir=None):
         raise GitError('git rev-list returned error %d' % rv)
 
 
-def get_commit_dates(refs, repo_dir=None):
-    """Get the dates for the specified commit refs.  For now, every unique
-       string in refs must resolve to a different commit or this
-       function will fail."""
-    result = []
-    for ref in refs:
-        commit = get_commit_items(ref, cp(repo_dir))
-        result.append(commit.author_sec)
-    return result
-
-
 def rev_parse(committish, repo_dir=None):
     """Resolve the full hash for 'committish', if it exists.