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
This commit is contained in:
Ivan Frade 2022-12-06 15:59:03 -08:00
parent 3a136d2000
commit 91587aebd0
1 changed files with 0 additions and 7 deletions

View File

@ -116,13 +116,6 @@ int getOidPosition(RevCommit c) throws MissingObjectException {
return commitWithPosition.position;
}
RevCommit getCommit(int oidPos) {
if (oidPos < 0 || oidPos >= sortedCommits.size()) {
return null;
}
return sortedCommits.get(oidPos);
}
int getExtraEdgeCnt() {
return extraEdgeCnt;
}