Skip to content
Snippets Groups Projects
Unverified Commit 90586178 authored by Oliver Tale-Yazdi's avatar Oliver Tale-Yazdi Committed by GitHub
Browse files

Remove Weight::without_{ref_time, proof_size} (#13637)

parent 988f6add
Branches
Tags monthly-2023-04
No related merge requests found
Pipeline #258230 failed
......@@ -74,16 +74,6 @@ impl Weight {
&mut self.proof_size
}
/// Return self but discard any reference time.
pub const fn without_ref_time(&self) -> Self {
Self { ref_time: 0, proof_size: self.proof_size }
}
/// Return self but discard any proof size.
pub const fn without_proof_size(&self) -> Self {
Self { ref_time: self.ref_time, proof_size: 0 }
}
pub const MAX: Self = Self { ref_time: u64::MAX, proof_size: u64::MAX };
/// Get the conservative min of `self` and `other` weight.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment