Skip to content

Commit

Permalink
Remove Weight::without_{ref_time, proof_size} (paritytech#13637)
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
  • Loading branch information
ggwpez authored and breathx committed Apr 22, 2023
1 parent 4c79be5 commit 77468db
Showing 1 changed file with 0 additions and 10 deletions.
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

0 comments on commit 77468db

Please sign in to comment.