From 014ea0abd042d5ea2a9872892e602a20a7a5c69c Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Mon, 4 Nov 2019 15:10:50 -0800 Subject: [PATCH] htlcswitch/iterator: remove unused ExtraOnionBlob method --- htlcswitch/hop/iterator.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/htlcswitch/hop/iterator.go b/htlcswitch/hop/iterator.go index bf9f7b48..a11ce632 100644 --- a/htlcswitch/hop/iterator.go +++ b/htlcswitch/hop/iterator.go @@ -24,9 +24,6 @@ type Iterator interface { // by the sender. HopPayload() (*Payload, error) - // ExtraOnionBlob returns the additional EOB data (if available). - ExtraOnionBlob() []byte - // EncodeNextHop encodes the onion packet destined for the next hop // into the passed io.Writer. EncodeNextHop(w io.Writer) error @@ -102,15 +99,6 @@ func (r *sphinxHopIterator) HopPayload() (*Payload, error) { } } -// ExtraOnionBlob returns the additional EOB data (if available). -func (r *sphinxHopIterator) ExtraOnionBlob() []byte { - if r.processedPacket.Payload.Type == sphinx.PayloadLegacy { - return nil - } - - return r.processedPacket.Payload.Payload -} - // ExtractErrorEncrypter decodes and returns the ErrorEncrypter for this hop, // along with a failure code to signal if the decoding was successful. The // ErrorEncrypter is used to encrypt errors back to the sender in the event that