Remove now-unused Readable impl for ReceiveTlvs
authorValentine Wallace <vwallace@protonmail.com>
Wed, 25 Oct 2023 21:44:51 +0000 (17:44 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Thu, 30 Nov 2023 03:43:12 +0000 (22:43 -0500)
lightning/src/blinded_path/payment.rs

index 3e475893153096ecfef6107ebe9a90fcd0e31028..7b604fbdcb1d8af0a6dffbdfd40b1898d7d19d52 100644 (file)
@@ -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: io::Read>(r: &mut R) -> Result<Self, DecodeError> {
-               _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<W: Writer>(&self, w: &mut W) -> Result<(), io::Error> {
                // TODO: write padding