From d2222c8224923feb90c1b0efd3ef920d56f342f9 Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Wed, 25 Oct 2023 17:44:51 -0400 Subject: [PATCH] Remove now-unused Readable impl for ReceiveTlvs --- lightning/src/blinded_path/payment.rs | 15 --------------- 1 file changed, 15 deletions(-) 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 -- 2.39.5