Skip to content

Commit

Permalink
TransactionOutPoint: remove deprecated method getIndex()
Browse files Browse the repository at this point in the history
  • Loading branch information
schildbach committed Sep 2, 2024
1 parent b18304c commit 71c211f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
8 changes: 0 additions & 8 deletions core/src/main/java/org/bitcoinj/core/TransactionOutPoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -242,14 +242,6 @@ public long index() {
return index;
}

/**
* @deprecated Use {@link #index()}
*/
@Deprecated
public long getIndex() {
return index();
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,4 @@ private Iterator<TransactionOutPoint> randomOutPoints() {
return new TransactionOutPoint(Integer.toUnsignedLong(random.nextInt()), Sha256Hash.wrap(randomBytes));
}).limit(10).iterator();
}

@Test
public void deprecatedMembers() {
TransactionOutPoint outpoint = TransactionOutPoint.UNCONNECTED;
outpoint.getIndex();
}
}

0 comments on commit 71c211f

Please sign in to comment.