Skip to content

Commit

Permalink
Remove deprecated RawEvent types from some pallets (paritytech#11316)
Browse files Browse the repository at this point in the history
Signed-off-by: koushiro <[email protected]>
  • Loading branch information
koushiro authored Apr 29, 2022
1 parent efe6d77 commit 39a634d
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 50 deletions.
4 changes: 0 additions & 4 deletions frame/atomic-swap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> = Event<T>;

#[pallet::call]
impl<T: Config> Pallet<T> {
/// Register a new atomic swap, declaring an intention to send funds from origin to target
Expand Down
4 changes: 0 additions & 4 deletions frame/balances/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T, I = ()> = Event<T, I>;

#[pallet::error]
pub enum Error<T, I = ()> {
/// Vesting balance too high to send value
Expand Down
4 changes: 0 additions & 4 deletions frame/collective/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T, I = ()> = Event<T, I>;

#[pallet::error]
pub enum Error<T, I = ()> {
/// Account is not a member
Expand Down
3 changes: 0 additions & 3 deletions frame/elections-phragmen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,9 +569,6 @@ pub mod pallet {
},
}

#[deprecated(note = "use `Event` instead")]
pub type RawEvent<T> = Event<T>;

#[pallet::error]
pub enum Error<T> {
/// Cannot vote when no candidates or members exist.
Expand Down
3 changes: 0 additions & 3 deletions frame/grandpa/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,6 @@ pub mod pallet {
Resumed,
}

#[deprecated(note = "use `Event` instead")]
pub type RawEvent = Event;

#[pallet::error]
pub enum Error<T> {
/// Attempt to signal GRANDPA pause when the authority set isn't live
Expand Down
4 changes: 0 additions & 4 deletions frame/indices/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> = Event<T>;

#[pallet::error]
pub enum Error<T> {
/// The index was not already assigned.
Expand Down
4 changes: 0 additions & 4 deletions frame/membership/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ pub mod pallet {
Dummy { _phantom_data: PhantomData<(T::AccountId, <T as Config<I>>::Event)> },
}

/// Old name generated by `decl_event`.
#[deprecated(note = "use `Event` instead")]
pub type RawEvent<T, I = ()> = Event<T, I>;

#[pallet::error]
pub enum Error<T, I = ()> {
/// Already a member.
Expand Down
4 changes: 0 additions & 4 deletions frame/proxy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,10 +579,6 @@ pub mod pallet {
},
}

/// Old name generated by `decl_event`.
#[deprecated(note = "use `Event` instead")]
pub type RawEvent<T> = Event<T>;

#[pallet::error]
pub enum Error<T> {
/// There are too many proxies registered or too many announcements pending.
Expand Down
4 changes: 0 additions & 4 deletions frame/session/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> {
Expand Down
4 changes: 0 additions & 4 deletions frame/society/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,6 @@ pub mod pallet {
Deposit { value: BalanceOf<T, I> },
}

/// Old name generated by `decl_event`.
#[deprecated(note = "use `Event` instead")]
pub type RawEvent<T, I = ()> = Event<T, I>;

/// The first member.
#[pallet::storage]
#[pallet::getter(fn founder)]
Expand Down
4 changes: 0 additions & 4 deletions frame/system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> = Event<T>;

/// Error for the System pallet
#[pallet::error]
pub enum Error<T> {
Expand Down
4 changes: 0 additions & 4 deletions frame/tips/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,6 @@ pub mod pallet {
TipSlashed { tip_hash: T::Hash, finder: T::AccountId, deposit: BalanceOf<T> },
}

/// Old name generated by `decl_event`.
#[deprecated(note = "use `Event` instead")]
pub type RawEvent<T> = Event<T>;

#[pallet::error]
pub enum Error<T> {
/// The reason given is just too big.
Expand Down
4 changes: 0 additions & 4 deletions frame/treasury/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,6 @@ pub mod pallet {
Deposit { value: BalanceOf<T, I> },
}

/// Old name generated by `decl_event`.
#[deprecated(note = "use `Event` instead")]
pub type RawEvent<T, I = ()> = Event<T, I>;

/// Error for the treasury pallet.
#[pallet::error]
pub enum Error<T, I = ()> {
Expand Down

0 comments on commit 39a634d

Please sign in to comment.