Skip to content

Commit cd023de

Browse files
Remove now-unused Readable impl for ReceiveTlvs
1 parent 69d7c1b commit cd023de

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lightning/src/blinded_path/payment.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -118,21 +118,6 @@ impl Writeable for ReceiveTlvs {
118118
}
119119
}
120120

121-
// This will be removed once we support forwarding blinded HTLCs, because we'll always read a
122-
// `BlindedPaymentTlvs` instead.
123-
impl Readable for ReceiveTlvs {
124-
fn read<R: io::Read>(r: &mut R) -> Result<Self, DecodeError> {
125-
_init_and_read_tlv_stream!(r, {
126-
(12, payment_constraints, required),
127-
(65536, payment_secret, required),
128-
});
129-
Ok(Self {
130-
payment_secret: payment_secret.0.unwrap(),
131-
payment_constraints: payment_constraints.0.unwrap()
132-
})
133-
}
134-
}
135-
136121
impl<'a> Writeable for BlindedPaymentTlvsRef<'a> {
137122
fn write<W: Writer>(&self, w: &mut W) -> Result<(), io::Error> {
138123
// TODO: write padding

0 commit comments

Comments
 (0)