diff --git a/types/src/v0/impls/header.rs b/types/src/v0/impls/header.rs index f716a644ba..5db4a3562c 100644 --- a/types/src/v0/impls/header.rs +++ b/types/src/v0/impls/header.rs @@ -357,32 +357,6 @@ impl Header { _ => panic!("invalid version: {version}"), } } - // #[cfg(test)] - // pub fn from_header(header: Self, overrides: HeaderOverides) -> Self { - // let builder_signature = if let Some(builder_signature) = overrides.builder_signature { - // builder_signature - // } else { - // header.builder_signature() - // }; - // match header { - // Self::V1(header) => Self::V1(v0_1::Header { - // builder_signature: Some(signature), - // fee_info: FeeInfo::new(account, data), - // ..header - // }), - // _ => unimplemented!(), - // }; - // } -} - -#[cfg(test)] -/// Test utility that allows us to override fields on a Header. We -/// should only add things here that are only used in tests. Every -/// field should be an `Option` to allow us to determine if that field -/// should be updated or not. -struct HeaderOverides { - pub builder_signature: Option, - pub fee_info: Option, } // Getter for a field which is the same across all versions.