From: Valentine Wallace Date: Wed, 25 Oct 2023 21:44:51 +0000 (-0400) Subject: Remove now-unused Readable impl for ReceiveTlvs X-Git-Tag: v0.0.119~36^2~10 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=d2222c8224923feb90c1b0efd3ef920d56f342f9;p=rust-lightning Remove now-unused Readable impl for ReceiveTlvs --- diff --git a/lightning/src/blinded_path/payment.rs b/lightning/src/blinded_path/payment.rs index 3e4758931..7b604fbdc 100644 --- a/lightning/src/blinded_path/payment.rs +++ b/lightning/src/blinded_path/payment.rs @@ -118,21 +118,6 @@ impl Writeable for ReceiveTlvs { } } -// This will be removed once we support forwarding blinded HTLCs, because we'll always read a -// `BlindedPaymentTlvs` instead. -impl Readable for ReceiveTlvs { - fn read(r: &mut R) -> Result { - _init_and_read_tlv_stream!(r, { - (12, payment_constraints, required), - (65536, payment_secret, required), - }); - Ok(Self { - payment_secret: payment_secret.0.unwrap(), - payment_constraints: payment_constraints.0.unwrap() - }) - } -} - impl<'a> Writeable for BlindedPaymentTlvsRef<'a> { fn write(&self, w: &mut W) -> Result<(), io::Error> { // TODO: write padding