From 39a634d249b54c598c7b1ba41634828ada7506da Mon Sep 17 00:00:00 2001 From: Qinxuan Chen Date: Fri, 29 Apr 2022 16:28:17 +0800 Subject: [PATCH] Remove deprecated RawEvent types from some pallets (#11316) Signed-off-by: koushiro --- frame/atomic-swap/src/lib.rs | 4 ---- frame/balances/src/lib.rs | 4 ---- frame/collective/src/lib.rs | 4 ---- frame/elections-phragmen/src/lib.rs | 3 --- frame/grandpa/src/lib.rs | 3 --- frame/indices/src/lib.rs | 4 ---- frame/membership/src/lib.rs | 4 ---- frame/proxy/src/lib.rs | 4 ---- frame/session/src/lib.rs | 4 ---- frame/society/src/lib.rs | 4 ---- frame/system/src/lib.rs | 4 ---- frame/tips/src/lib.rs | 4 ---- frame/treasury/src/lib.rs | 4 ---- 13 files changed, 50 deletions(-) diff --git a/frame/atomic-swap/src/lib.rs b/frame/atomic-swap/src/lib.rs index e57496954a574..40429c226e649 100644 --- a/frame/atomic-swap/src/lib.rs +++ b/frame/atomic-swap/src/lib.rs @@ -232,10 +232,6 @@ pub mod pallet { SwapCancelled { account: T::AccountId, proof: HashedProof }, } - /// Old name generated by `decl_event`. - #[deprecated(note = "use `Event` instead")] - pub type RawEvent = Event; - #[pallet::call] impl Pallet { /// Register a new atomic swap, declaring an intention to send funds from origin to target diff --git a/frame/balances/src/lib.rs b/frame/balances/src/lib.rs index 0eab933f7757d..5ba6c4dfa1f69 100644 --- a/frame/balances/src/lib.rs +++ b/frame/balances/src/lib.rs @@ -466,10 +466,6 @@ pub mod pallet { Slashed { who: T::AccountId, amount: T::Balance }, } - /// Old name generated by `decl_event`. - #[deprecated(note = "use `Event` instead")] - pub type RawEvent = Event; - #[pallet::error] pub enum Error { /// Vesting balance too high to send value diff --git a/frame/collective/src/lib.rs b/frame/collective/src/lib.rs index e876343ec33da..817e4e176bd4c 100644 --- a/frame/collective/src/lib.rs +++ b/frame/collective/src/lib.rs @@ -306,10 +306,6 @@ pub mod pallet { Closed { proposal_hash: T::Hash, yes: MemberCount, no: MemberCount }, } - /// Old name generated by `decl_event`. - #[deprecated(note = "use `Event` instead")] - pub type RawEvent = Event; - #[pallet::error] pub enum Error { /// Account is not a member diff --git a/frame/elections-phragmen/src/lib.rs b/frame/elections-phragmen/src/lib.rs index 4758c793cfefd..a59da9c20f809 100644 --- a/frame/elections-phragmen/src/lib.rs +++ b/frame/elections-phragmen/src/lib.rs @@ -569,9 +569,6 @@ pub mod pallet { }, } - #[deprecated(note = "use `Event` instead")] - pub type RawEvent = Event; - #[pallet::error] pub enum Error { /// Cannot vote when no candidates or members exist. diff --git a/frame/grandpa/src/lib.rs b/frame/grandpa/src/lib.rs index e30d65acbc6a6..318f2f40ea4d9 100644 --- a/frame/grandpa/src/lib.rs +++ b/frame/grandpa/src/lib.rs @@ -262,9 +262,6 @@ pub mod pallet { Resumed, } - #[deprecated(note = "use `Event` instead")] - pub type RawEvent = Event; - #[pallet::error] pub enum Error { /// Attempt to signal GRANDPA pause when the authority set isn't live diff --git a/frame/indices/src/lib.rs b/frame/indices/src/lib.rs index 9c9e3580f2c04..db983a802cadf 100644 --- a/frame/indices/src/lib.rs +++ b/frame/indices/src/lib.rs @@ -270,10 +270,6 @@ pub mod pallet { IndexFrozen { index: T::AccountIndex, who: T::AccountId }, } - /// Old name generated by `decl_event`. - #[deprecated(note = "use `Event` instead")] - pub type RawEvent = Event; - #[pallet::error] pub enum Error { /// The index was not already assigned. diff --git a/frame/membership/src/lib.rs b/frame/membership/src/lib.rs index e8256fab83af2..5a9c0a461cdac 100644 --- a/frame/membership/src/lib.rs +++ b/frame/membership/src/lib.rs @@ -147,10 +147,6 @@ pub mod pallet { Dummy { _phantom_data: PhantomData<(T::AccountId, >::Event)> }, } - /// Old name generated by `decl_event`. - #[deprecated(note = "use `Event` instead")] - pub type RawEvent = Event; - #[pallet::error] pub enum Error { /// Already a member. diff --git a/frame/proxy/src/lib.rs b/frame/proxy/src/lib.rs index 891315c92aa39..1bab3626fb5a9 100644 --- a/frame/proxy/src/lib.rs +++ b/frame/proxy/src/lib.rs @@ -579,10 +579,6 @@ pub mod pallet { }, } - /// Old name generated by `decl_event`. - #[deprecated(note = "use `Event` instead")] - pub type RawEvent = Event; - #[pallet::error] pub enum Error { /// There are too many proxies registered or too many announcements pending. diff --git a/frame/session/src/lib.rs b/frame/session/src/lib.rs index 4cf793a9b4739..d6ecd17a8f2ae 100644 --- a/frame/session/src/lib.rs +++ b/frame/session/src/lib.rs @@ -547,10 +547,6 @@ pub mod pallet { NewSession { session_index: SessionIndex }, } - /// Old name generated by `decl_event`. - #[deprecated(note = "use `Event` instead")] - pub type RawEvent = Event; - /// Error for the session pallet. #[pallet::error] pub enum Error { diff --git a/frame/society/src/lib.rs b/frame/society/src/lib.rs index a9f83094fd49c..6ad63d2102c53 100644 --- a/frame/society/src/lib.rs +++ b/frame/society/src/lib.rs @@ -513,10 +513,6 @@ pub mod pallet { Deposit { value: BalanceOf }, } - /// Old name generated by `decl_event`. - #[deprecated(note = "use `Event` instead")] - pub type RawEvent = Event; - /// The first member. #[pallet::storage] #[pallet::getter(fn founder)] diff --git a/frame/system/src/lib.rs b/frame/system/src/lib.rs index 0eefc23a6b5d6..14e67cfcd8156 100644 --- a/frame/system/src/lib.rs +++ b/frame/system/src/lib.rs @@ -509,10 +509,6 @@ pub mod pallet { Remarked { sender: T::AccountId, hash: T::Hash }, } - /// Old name generated by `decl_event`. - #[deprecated(note = "use `Event` instead")] - pub type RawEvent = Event; - /// Error for the System pallet #[pallet::error] pub enum Error { diff --git a/frame/tips/src/lib.rs b/frame/tips/src/lib.rs index ae320629dfc34..4b7d78b90be38 100644 --- a/frame/tips/src/lib.rs +++ b/frame/tips/src/lib.rs @@ -195,10 +195,6 @@ pub mod pallet { TipSlashed { tip_hash: T::Hash, finder: T::AccountId, deposit: BalanceOf }, } - /// Old name generated by `decl_event`. - #[deprecated(note = "use `Event` instead")] - pub type RawEvent = Event; - #[pallet::error] pub enum Error { /// The reason given is just too big. diff --git a/frame/treasury/src/lib.rs b/frame/treasury/src/lib.rs index 3f76ddb639c5b..d080d346ba3de 100644 --- a/frame/treasury/src/lib.rs +++ b/frame/treasury/src/lib.rs @@ -277,10 +277,6 @@ pub mod pallet { Deposit { value: BalanceOf }, } - /// Old name generated by `decl_event`. - #[deprecated(note = "use `Event` instead")] - pub type RawEvent = Event; - /// Error for the treasury pallet. #[pallet::error] pub enum Error {