mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 22:11:06 +00:00
Delete 1D weight ctors and set explicit deprecation dates (#14397)
* Delete old weight functions Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add explicit removal dates Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Upate UI tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
ebf7c1c478
commit
0895f4904f
@@ -97,18 +97,6 @@ impl Weight {
|
||||
}
|
||||
}
|
||||
|
||||
/// Construct [`Weight`] with reference time weight and 0 storage size weight.
|
||||
#[deprecated = "Will be removed soon; use `from_parts` instead."]
|
||||
pub const fn from_ref_time(ref_time: u64) -> Self {
|
||||
Self { ref_time, proof_size: 0 }
|
||||
}
|
||||
|
||||
/// Construct [`Weight`] with storage size weight and 0 reference time weight.
|
||||
#[deprecated = "Will be removed soon; use `from_parts` instead."]
|
||||
pub const fn from_proof_size(proof_size: u64) -> Self {
|
||||
Self { ref_time: 0, proof_size }
|
||||
}
|
||||
|
||||
/// Construct [`Weight`] from weight parts, namely reference time and proof size weights.
|
||||
pub const fn from_parts(ref_time: u64, proof_size: u64) -> Self {
|
||||
Self { ref_time, proof_size }
|
||||
|
||||
Reference in New Issue
Block a user