From c5e3320f57dd384d67f3eceb4771ada5ffbfa5d7 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 7 Sep 2018 18:43:48 -0500 Subject: [PATCH] indexers: Remove unneeded existsaddrindex iface. This removes the implementation of the NeedsInputser interface on the exists address index since not implementing the interface is the same as implementing it and returning false. This is desirable because not only is it less code, it is consistent with the transaction index. --- blockchain/indexers/existsaddrindex.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/blockchain/indexers/existsaddrindex.go b/blockchain/indexers/existsaddrindex.go index d56ed09e..3d0af310 100644 --- a/blockchain/indexers/existsaddrindex.go +++ b/blockchain/indexers/existsaddrindex.go @@ -76,17 +76,6 @@ func NewExistsAddrIndex(db database.DB, chainParams *chaincfg.Params) *ExistsAdd // Ensure the ExistsAddrIndex type implements the Indexer interface. var _ Indexer = (*ExistsAddrIndex)(nil) -// Ensure the ExistsAddrIndex type implements the NeedsInputser interface. -var _ NeedsInputser = (*ExistsAddrIndex)(nil) - -// NeedsInputs signals that the index requires the referenced inputs in order -// to properly create the index. -// -// This implements the NeedsInputser interface. -func (idx *ExistsAddrIndex) NeedsInputs() bool { - return false -} - // Init is only provided to satisfy the Indexer interface as there is nothing to // initialize for this index. //