mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 18:41:05 +00:00
Remove long deprecated AllPalletsWithoutSystemReversed (#2509)
Remove deprecated `AllPalletsXY` types. They have been deprecated for nearly 1.5 years now, I think its fine to remove them. If anyone feels like we should first put a date on the deprecation as stated in the deprecation guideline, feel free to speak up. To me it looks like this has been forgotten and can be directly removed.
This commit is contained in:
@@ -600,66 +600,12 @@ fn decl_all_pallets<'a>(
|
||||
}
|
||||
});
|
||||
|
||||
let all_pallets_without_system_reversed = attribute_to_names.iter().map(|(attr, names)| {
|
||||
let names = names.iter().filter(|n| **n != SYSTEM_PALLET_NAME).rev();
|
||||
quote! {
|
||||
#attr
|
||||
/// All pallets included in the runtime as a nested tuple of types in reversed order.
|
||||
/// Excludes the System pallet.
|
||||
#[deprecated(note = "Using reverse pallet orders is deprecated. use only \
|
||||
`AllPalletsWithSystem or AllPalletsWithoutSystem`")]
|
||||
pub type AllPalletsWithoutSystemReversed = ( #(#names,)* );
|
||||
}
|
||||
});
|
||||
|
||||
let all_pallets_with_system_reversed = attribute_to_names.iter().map(|(attr, names)| {
|
||||
let names = names.iter().rev();
|
||||
quote! {
|
||||
#attr
|
||||
/// All pallets included in the runtime as a nested tuple of types in reversed order.
|
||||
#[deprecated(note = "Using reverse pallet orders is deprecated. use only \
|
||||
`AllPalletsWithSystem or AllPalletsWithoutSystem`")]
|
||||
pub type AllPalletsWithSystemReversed = ( #(#names,)* );
|
||||
}
|
||||
});
|
||||
|
||||
let all_pallets_reversed_with_system_first = attribute_to_names.iter().map(|(attr, names)| {
|
||||
let system = quote::format_ident!("{}", SYSTEM_PALLET_NAME);
|
||||
let names = std::iter::once(&system)
|
||||
.chain(names.iter().rev().filter(|n| **n != SYSTEM_PALLET_NAME).cloned());
|
||||
quote! {
|
||||
#attr
|
||||
/// All pallets included in the runtime as a nested tuple of types in reversed order.
|
||||
/// With the system pallet first.
|
||||
#[deprecated(note = "Using reverse pallet orders is deprecated. use only \
|
||||
`AllPalletsWithSystem or AllPalletsWithoutSystem`")]
|
||||
pub type AllPalletsReversedWithSystemFirst = ( #(#names,)* );
|
||||
}
|
||||
});
|
||||
|
||||
quote!(
|
||||
#types
|
||||
|
||||
/// All pallets included in the runtime as a nested tuple of types.
|
||||
#[deprecated(note = "The type definition has changed from representing all pallets \
|
||||
excluding system, in reversed order to become the representation of all pallets \
|
||||
including system pallet in regular order. For this reason it is encouraged to use \
|
||||
explicitly one of `AllPalletsWithSystem`, `AllPalletsWithoutSystem`, \
|
||||
`AllPalletsWithSystemReversed`, `AllPalletsWithoutSystemReversed`. \
|
||||
Note that the type `frame_executive::Executive` expects one of `AllPalletsWithSystem` \
|
||||
, `AllPalletsWithSystemReversed`, `AllPalletsReversedWithSystemFirst`. More details in \
|
||||
https://github.com/paritytech/substrate/pull/10043")]
|
||||
pub type AllPallets = AllPalletsWithSystem;
|
||||
|
||||
#( #all_pallets_with_system )*
|
||||
|
||||
#( #all_pallets_without_system )*
|
||||
|
||||
#( #all_pallets_with_system_reversed )*
|
||||
|
||||
#( #all_pallets_without_system_reversed )*
|
||||
|
||||
#( #all_pallets_reversed_with_system_first )*
|
||||
)
|
||||
}
|
||||
fn decl_pallet_runtime_setup(
|
||||
|
||||
Reference in New Issue
Block a user