Skip to content

Commit

Permalink
Remove PalletInfo impl for () (paritytech#8090)
Browse files Browse the repository at this point in the history
  • Loading branch information
ascjones authored Feb 9, 2021
1 parent 273bc7b commit 4777aba
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions frame/support/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1459,11 +1459,6 @@ pub trait PalletInfo {
fn name<P: 'static>() -> Option<&'static str>;
}

impl PalletInfo for () {
fn index<P: 'static>() -> Option<usize> { Some(0) }
fn name<P: 'static>() -> Option<&'static str> { Some("test") }
}

/// The function and pallet name of the Call.
#[derive(Clone, Eq, PartialEq, Default, RuntimeDebug)]
pub struct CallMetadata {
Expand Down

0 comments on commit 4777aba

Please sign in to comment.