From 078fb4d38e281d15c141f84de97d01e6691f1b84 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Sat, 5 Oct 2013 21:05:29 -0400 Subject: [PATCH] Delete obsolete API functions. --- ldb/tx.go | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/ldb/tx.go b/ldb/tx.go index 7bc003004..a60fc4275 100644 --- a/ldb/tx.go +++ b/ldb/tx.go @@ -143,28 +143,3 @@ func (db *LevelDb) existsTxSha(txSha *btcwire.ShaHash) (exists bool) { return false } - -// FetchLocationBySha looks up the Tx sha information by name. -func (db *LevelDb) FetchLocationBySha(txsha *btcwire.ShaHash) (blockidx int64, txoff int, txlen int, err error) { - db.dbLock.Lock() - defer db.dbLock.Unlock() - err = fmt.Errorf("obsolete function") - return -} - -// FetchTxUsedBySha returns the used/spent buffer for a given transaction. -func (db *LevelDb) FetchTxUsedBySha(txSha *btcwire.ShaHash) (spentbuf []byte, err error) { - db.dbLock.Lock() - defer db.dbLock.Unlock() - - _, _, _, spentbuf, err = db.getTxData(txSha) - if err != nil { - return - } - return // spentbuf has the value already -} - -func (db *LevelDb) fetchLocationUsedBySha(txsha *btcwire.ShaHash) error { - // delete me - return fmt.Errorf("Deleted function") -}