Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

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

Merged
merged 1 commit into from
Mar 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions primitives/weights/src/weight_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down