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:
parent
3a136d2000
commit
91587aebd0
|
@ -116,13 +116,6 @@ int getOidPosition(RevCommit c) throws MissingObjectException {
|
||||||
return commitWithPosition.position;
|
return commitWithPosition.position;
|
||||||
}
|
}
|
||||||
|
|
||||||
RevCommit getCommit(int oidPos) {
|
|
||||||
if (oidPos < 0 || oidPos >= sortedCommits.size()) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
return sortedCommits.get(oidPos);
|
|
||||||
}
|
|
||||||
|
|
||||||
int getExtraEdgeCnt() {
|
int getExtraEdgeCnt() {
|
||||||
return extraEdgeCnt;
|
return extraEdgeCnt;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue