Remove now unneeded empty hooks and calls #8873 (#8874)

* Remove now unneeded empty hooks and calls

* fix pallet_ui tests
This commit is contained in:
Tim Gestson
2021-05-23 12:30:46 -04:00
committed by GitHub
parent 4dc8f3a7e5
commit 14befab52e
17 changed files with 0 additions and 59 deletions
@@ -59,9 +59,6 @@ pub mod pallet {
StorageOverflow,
}
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
// Dispatchable functions allows users to interact with the pallet and invoke state changes.
// These functions materialize as "extrinsics", which are often compared to transactions.
// Dispatchable functions must be annotated with a weight and must return a DispatchResult.
-3
View File
@@ -338,9 +338,6 @@ pub mod pallet {
WouldDie,
}
#[pallet::hooks]
impl<T: Config<I>, I: 'static> Hooks<BlockNumberFor<T>> for Pallet<T, I> {}
#[pallet::call]
impl<T: Config<I>, I: 'static> Pallet<T, I> {
/// Issue a new class of fungible assets from a public origin.
-3
View File
@@ -173,9 +173,6 @@ pub mod pallet {
PendingSwap<T>,
>;
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
#[pallet::error]
pub enum Error<T> {
/// Swap already exists.
-3
View File
@@ -87,9 +87,6 @@ pub mod pallet {
}
}
#[pallet::call]
impl<T: Config> Pallet<T> {}
/// The current authority set.
#[pallet::storage]
#[pallet::getter(fn authorities)]
@@ -34,7 +34,6 @@ pub use pallet::*;
#[frame_support::pallet]
pub mod pallet {
use frame_support::pallet_prelude::*;
use frame_system::pallet_prelude::*;
use super::*;
#[pallet::pallet]
@@ -82,12 +81,6 @@ pub mod pallet {
Pallet::<T>::initialize_keys(&self.keys)
}
}
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
#[pallet::call]
impl<T: Config> Pallet<T> {}
}
impl<T: Config> Pallet<T> {
-4
View File
@@ -220,10 +220,6 @@ pub mod pallet {
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T, I=()>(PhantomData<(T, I)>);
#[pallet::hooks]
impl<T: Config<I>, I: 'static> Hooks<BlockNumberFor<T>> for Pallet<T, I> {
}
#[pallet::call]
impl<T: Config<I>, I: 'static> Pallet<T, I> {
/// Transfer some liquid free balance to another account.
@@ -48,9 +48,6 @@ pub mod pallet {
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(_);
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
/// A public part of the pallet.
#[pallet::call]
impl<T: Config> Pallet<T> {
-3
View File
@@ -532,9 +532,6 @@ pub mod pallet {
SubIdentityRevoked(T::AccountId, T::AccountId, BalanceOf<T>),
}
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
#[pallet::call]
/// Identity pallet declaration.
impl<T: Config> Pallet<T> {
-3
View File
@@ -69,9 +69,6 @@ pub mod pallet {
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(PhantomData<T>);
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
#[pallet::call]
impl<T: Config> Pallet<T> {
/// Assign an previously unassigned index.
-3
View File
@@ -119,9 +119,6 @@ pub mod pallet {
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(_);
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
#[pallet::call]
impl<T: Config> Pallet<T> {
/// Set an account's name. The name should be a UTF-8-encoded string by convention, though
-3
View File
@@ -131,9 +131,6 @@ pub mod pallet {
migration::remove_deferred_storage::<T>()
}
}
#[pallet::call]
impl<T: Config> Pallet<T> {}
}
impl<T: Config, O: Offence<T::IdentificationTuple>>
-3
View File
@@ -154,9 +154,6 @@ pub mod pallet {
type AnnouncementDepositFactor: Get<BalanceOf<Self>>;
}
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
#[pallet::call]
impl<T: Config> Pallet<T> {
/// Dispatch the given `call` from an account that the sender is authorised for through
-3
View File
@@ -337,9 +337,6 @@ pub mod pallet {
#[pallet::getter(fn proxy)]
pub type Proxy<T: Config> = StorageMap<_, Blake2_128Concat, T::AccountId, T::AccountId>;
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
#[pallet::call]
impl<T: Config> Pallet<T> {
/// Send a call through a recovered account.
-6
View File
@@ -65,9 +65,6 @@
//! #[pallet::pallet]
//! pub struct Pallet<T>(PhantomData<T>);
//!
//! #[pallet::hooks]
//! impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
//!
//! #[pallet::call]
//! impl<T: Config> Pallet<T> {
//! #[pallet::weight(0)]
@@ -130,9 +127,6 @@ pub mod pallet {
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(PhantomData<T>);
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
#[pallet::call]
impl<T: Config> Pallet<T> {
/// Authenticates the sudo key and dispatches a function call with `Root` origin.
-3
View File
@@ -42,9 +42,6 @@ pub mod logger {
#[pallet::generate_store(pub(super) trait Store)]
pub struct Pallet<T>(PhantomData<T>);
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
#[pallet::call]
impl<T: Config> Pallet<T> {
#[pallet::weight(*weight)]
-3
View File
@@ -107,9 +107,6 @@ pub mod pallet {
BatchCompleted,
}
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
#[pallet::call]
impl<T: Config> Pallet<T> {
/// Send a batch of dispatch calls.
-3
View File
@@ -203,9 +203,6 @@ pub mod pallet {
AmountLow,
}
#[pallet::hooks]
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
#[pallet::call]
impl<T: Config> Pallet<T> {
/// Unlock any vested funds of the sender account.