Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
oblique committed Jul 12, 2024
1 parent 7dca5bf commit 5dce5fd
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions node/src/store/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,32 +304,6 @@ impl<'a, const N: usize> From<&'a mut [ValidatedExtendedHeader; N]> for Validate
}
}

/*
impl IntoIterator for ValidExtendedHeadersChain {
type Item = &ExtendedHeader;
type IntoIter<'a> = std::slice::Iter<'a, ExtendedHeader>;
fn into_iter(self) -> Self::IntoIter {
self.0.into_iter()
}
}
impl IntoIterator for VerifiedExtendedHeaders {
type Item = ExtendedHeader;
type IntoIter = std::vec::IntoIter<Self::Item>;
fn into_iter(self) -> Self::IntoIter {
self.0.into_iter()
}
}
impl AsRef<[ExtendedHeader]> for ValidExtendedHeadersChain {
fn as_ref(&self) -> &[ExtendedHeader] {
unsafe { mem::transmute(self.0.as_ref()) }
}
}
*/

impl IntoVerifiedExtendedHeaders for VerifiedExtendedHeaders {
async fn into_verified(self) -> celestia_types::Result<VerifiedExtendedHeaders> {
Ok(self)
Expand Down

0 comments on commit 5dce5fd

Please sign in to comment.