@@ -21,7 +21,7 @@ use crate::{
2121 RuntimeOrigin , ShiftSessionManager , Slots , UncheckedExtrinsic ,
2222} ;
2323
24- use frame_support:: { parameter_types, traits:: KeyOwnerProofSystem , weights :: Weight } ;
24+ use frame_support:: { parameter_types, traits:: KeyOwnerProofSystem } ;
2525use frame_system:: EnsureRoot ;
2626use polkadot_primitives:: v2:: { ValidatorId , ValidatorIndex } ;
2727use polkadot_runtime_common:: { paras_registrar, paras_sudo_wrapper, slots} ;
@@ -163,44 +163,3 @@ impl slots::Config for Runtime {
163163}
164164
165165impl paras_sudo_wrapper:: Config for Runtime { }
166-
167- pub struct ZeroWeights ;
168-
169- impl polkadot_runtime_common:: paras_registrar:: WeightInfo for ZeroWeights {
170- fn reserve ( ) -> Weight {
171- Weight :: from_ref_time ( 0 )
172- }
173- fn register ( ) -> Weight {
174- Weight :: from_ref_time ( 0 )
175- }
176- fn force_register ( ) -> Weight {
177- Weight :: from_ref_time ( 0 )
178- }
179- fn deregister ( ) -> Weight {
180- Weight :: from_ref_time ( 0 )
181- }
182- fn swap ( ) -> Weight {
183- Weight :: from_ref_time ( 0 )
184- }
185- fn schedule_code_upgrade ( _: u32 ) -> Weight {
186- Weight :: from_ref_time ( 0 )
187- }
188- fn set_current_head ( _: u32 ) -> Weight {
189- Weight :: from_ref_time ( 0 )
190- }
191- }
192-
193- impl polkadot_runtime_common:: slots:: WeightInfo for ZeroWeights {
194- fn force_lease ( ) -> Weight {
195- Weight :: from_ref_time ( 0 )
196- }
197- fn manage_lease_period_start ( _c : u32 , _t : u32 ) -> Weight {
198- Weight :: from_ref_time ( 0 )
199- }
200- fn clear_all_leases ( ) -> Weight {
201- Weight :: from_ref_time ( 0 )
202- }
203- fn trigger_onboard ( ) -> Weight {
204- Weight :: from_ref_time ( 0 )
205- }
206- }
0 commit comments