Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop dead code from provide_latest_counterparty_commitment_tx #3393

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

tnull
Copy link
Contributor

@tnull tnull commented Nov 1, 2024

We drop some dead code that unnecessarily allocates a Vec but does nothing else.

We drop some dead code that unnecessarily allocates a `Vec` but does
nothing else.
Copy link
Contributor

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines 2857 to -2863
}
let mut htlcs = Vec::with_capacity(htlc_outputs.len());
for htlc in htlc_outputs {
if htlc.0.transaction_output_index.is_some() {
htlcs.push(htlc.0);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously used to populate a hash map dropped in 44e4867.

@jkczyz jkczyz merged commit ef0f35a into lightningdevkit:main Nov 1, 2024
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants