Delete an unused method.

This commit is contained in:
Mike Hearn
2011-05-17 15:43:26 +00:00
parent 63e70998c7
commit 1fd8067322

View File

@@ -173,17 +173,6 @@ public class Wallet implements Serializable {
eventListeners = new ArrayList<WalletEventListener>();
}
/**
* 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).<p>