diff --git a/htlcswitch/hop/iterator.go b/htlcswitch/hop/iterator.go index bf9f7b48e..a11ce632c 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