Companion to Substrate #11490 (#5603)

* Fix warnings

* Bump
This commit is contained in:
Gavin Wood
2022-05-30 11:21:03 +01:00
committed by GitHub
parent f814695d5d
commit 026848c932
8 changed files with 205 additions and 174 deletions
@@ -852,10 +852,12 @@ impl<T: Config> Pallet<T> {
for to_prune in to_prune {
// This should be small, as disputes are rare, so `None` is fine.
#[allow(deprecated)]
<Disputes<T>>::remove_prefix(to_prune, None);
// This is larger, and will be extracted to the `shared` pallet for more proper pruning.
// TODO: https://github.com/paritytech/polkadot/issues/3469
#[allow(deprecated)]
<Included<T>>::remove_prefix(to_prune, None);
SpamSlots::<T>::remove(to_prune);
}