From dd79ffb82efc57f8c403aa66ba6314afb07c0971 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Mon, 28 Dec 2020 22:56:02 +0100 Subject: [PATCH] git: remove get_commit_dates() This function is unused. Signed-off-by: Johannes Berg Reviewed-by: Rob Browning [rlb@defaultvalue.org: likely orphaned by vfs overhaul] --- lib/bup/git.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/bup/git.py b/lib/bup/git.py index 1a3ff17..caa90fe 100644 --- a/lib/bup/git.py +++ b/lib/bup/git.py @@ -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. -- 2.39.2