Skip to content

Commit 397244d

Browse files
committed
f - drop InvoiceBuilder::mpp_required
1 parent 003099c commit 397244d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lightning/src/offers/invoice.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,21 +138,11 @@ impl<'a> InvoiceBuilder<'a> {
138138
}
139139

140140
/// Sets [`Invoice::features`] to indicate MPP may be used. Otherwise, MPP is disallowed.
141-
///
142-
/// A subsequent call to [`InvoiceBuilder::mpp_required`] will override this setting.
143141
pub fn mpp_optional(mut self) -> Self {
144142
self.invoice.fields_mut().features.set_basic_mpp_optional();
145143
self
146144
}
147145

148-
/// Sets [`Invoice::features`] to indicate MPP should be used. Otherwise, MPP is disallowed.
149-
///
150-
/// A subsequent call to [`InvoiceBuilder::mpp_optional`] will override this setting.
151-
pub fn mpp_required(mut self) -> Self {
152-
self.invoice.fields_mut().features.set_basic_mpp_required();
153-
self
154-
}
155-
156146
/// Builds an unsigned [`Invoice`] after checking for valid semantics. It can be signed by
157147
/// [`UnsignedInvoice::sign`].
158148
pub fn build(self) -> Result<UnsignedInvoice<'a>, SemanticError> {

0 commit comments

Comments
 (0)