From 91587aebd03d0d82d54b0f4716720328cdfd5646 Mon Sep 17 00:00:00 2001 From: Ivan Frade Date: Tue, 6 Dec 2022 15:59:03 -0800 Subject: [PATCH] GraphCommits: Remove unused getter by position CommitGraphWriter uses the GraphCommits in for-each loops and doesn't need the access by position anymore. This was a left-over from https://git.eclipse.org/r/c/jgit/jgit/+/182832 Remove the unused method. Change-Id: I39df9bfab2601d581705ddf4cea3c04ed4765ff9 --- .../jgit/internal/storage/commitgraph/GraphCommits.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/GraphCommits.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/GraphCommits.java index 23234f9109..ccf6d0e66a 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/GraphCommits.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/commitgraph/GraphCommits.java @@ -116,13 +116,6 @@ public class GraphCommits implements Iterable { return commitWithPosition.position; } - RevCommit getCommit(int oidPos) { - if (oidPos < 0 || oidPos >= sortedCommits.size()) { - return null; - } - return sortedCommits.get(oidPos); - } - int getExtraEdgeCnt() { return extraEdgeCnt; } -- 2.39.5