From 1fd80673222412814d6647982ac97ded46002753 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Tue, 17 May 2011 15:43:26 +0000 Subject: [PATCH] Delete an unused method. --- src/com/google/bitcoin/core/Wallet.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/com/google/bitcoin/core/Wallet.java b/src/com/google/bitcoin/core/Wallet.java index 8270ffe3..86f0dab2 100644 --- a/src/com/google/bitcoin/core/Wallet.java +++ b/src/com/google/bitcoin/core/Wallet.java @@ -173,17 +173,6 @@ public class Wallet implements Serializable { eventListeners = new ArrayList(); } - /** - * Returns true if the given transaction is present in the wallet, comparing by hash value (not by object - * reference). So you can create a transaction object from scratch and get true from this method if the - * transaction is logically equal. - */ - public synchronized boolean isTransactionPresent(Transaction transaction) { - // TODO: Redefine or delete this method. - Sha256Hash hash = transaction.getHash(); - return unspent.containsKey(hash) || spent.containsKey(hash); - } - /** * Called by the {@link BlockChain} when we receive a new block that sends coins to one of our addresses or * spends coins from one of our addresses (note that a single transaction can do both).