-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
C1-mentorA task where a mentor is available. Please indicate in the issue who the mentor could be.A task where a mentor is available. Please indicate in the issue who the mentor could be.D0-easyCan be fixed primarily by duplicating and adapting code by an intermediate coder.Can be fixed primarily by duplicating and adapting code by an intermediate coder.T1-FRAMEThis PR/Issue is related to core FRAME, the framework.This PR/Issue is related to core FRAME, the framework.
Description
frame_system::Consumer is obsolete / unused. Check the same for SelfSufficient, Provider and HandleLifetime:
polkadot-sdk/substrate/frame/system/src/lib.rs
Lines 2268 to 2278 in 63c73bf
| /// Event handler which registers a consumer when created. | |
| pub struct Consumer<T>(PhantomData<T>); | |
| impl<T: Config> HandleLifetime<T::AccountId> for Consumer<T> { | |
| fn created(t: &T::AccountId) -> Result<(), DispatchError> { | |
| Pallet::<T>::inc_consumers(t) | |
| } | |
| fn killed(t: &T::AccountId) -> Result<(), DispatchError> { | |
| Pallet::<T>::dec_consumers(t); | |
| Ok(()) | |
| } | |
| } |
Should be deprecated if no usage is found. Follow the deprecation checklist.
Metadata
Metadata
Assignees
Labels
C1-mentorA task where a mentor is available. Please indicate in the issue who the mentor could be.A task where a mentor is available. Please indicate in the issue who the mentor could be.D0-easyCan be fixed primarily by duplicating and adapting code by an intermediate coder.Can be fixed primarily by duplicating and adapting code by an intermediate coder.T1-FRAMEThis PR/Issue is related to core FRAME, the framework.This PR/Issue is related to core FRAME, the framework.
Type
Projects
Status
Backlog