summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Czech <maczech@gmail.com>2024-04-05 14:55:49 +0200
committerMarcin Czech <maczech@gmail.com>2024-04-05 13:31:43 +0000
commitde14d8f091c7730feefdd4d3e39b18024da6c790 (patch)
tree334a15895602360f31f20b2c78d612a487369530
parent0cba22f9999d48231d6ec08d410d43e3dbca00ea (diff)
Remove unused method to create change notes based on index lookup
`ChangeNotes.createUsingIndexLookup` method should only be used when project name and numeric change Id are not available. Currently this method is not used anymore and it can be safely removed. Bug: Issue 318396515 Release-Notes: skip Forward-Compatible: checked Change-Id: Ia4234edefbdb9e75b27ede3f5b47e9fc119dc272
-rw-r--r--java/com/google/gerrit/server/notedb/ChangeNotes.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/java/com/google/gerrit/server/notedb/ChangeNotes.java b/java/com/google/gerrit/server/notedb/ChangeNotes.java
index a2c9c2f299..97d65beccd 100644
--- a/java/com/google/gerrit/server/notedb/ChangeNotes.java
+++ b/java/com/google/gerrit/server/notedb/ChangeNotes.java
@@ -214,23 +214,6 @@ public class ChangeNotes extends AbstractChangeNotes<ChangeNotes> {
return changes.get(0).notes();
}
- /**
- * Create change notes based on a list of {@link com.google.gerrit.entities.Change.Id}s. This
- * requires using the Change index and should only be used when {@link
- * com.google.gerrit.entities.Project.NameKey} and the numeric change ID are not available.
- */
- public List<ChangeNotes> createUsingIndexLookup(Collection<Change.Id> changeIds) {
- List<ChangeNotes> notes = new ArrayList<>();
- for (Change.Id changeId : changeIds) {
- try {
- notes.add(createCheckedUsingIndexLookup(changeId));
- } catch (NoSuchChangeException e) {
- // Ignore missing changes to match Access#get(Iterable) behavior.
- }
- }
- return notes;
- }
-
public List<ChangeNotes> create(
Repository repo,
Project.NameKey project,