htlcswitch/iterator: remove unused ExtraOnionBlob method

This commit is contained in:
Conner Fromknecht 2019-11-04 15:10:50 -08:00
parent 9e9b912d3a
commit 014ea0abd0
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

View File

@ -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