Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Remove deprecated old weight items (#14706)
Browse files Browse the repository at this point in the history
* remove old weights frame-support

* ".git/.scripts/commands/fmt/fmt.sh"

---------

Co-authored-by: command-bot <>
  • Loading branch information
Doordashcon authored Aug 9, 2023
1 parent 3a271a5 commit ece92d6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 75 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ pub fn expand_outer_dispatch(
}
}
}
// Deprecated, but will warn when used
#[allow(deprecated)]
impl #scrate::weights::GetDispatchInfo for RuntimeCall {}

impl #scrate::dispatch::GetCallMetadata for RuntimeCall {
fn get_call_metadata(&self) -> #scrate::dispatch::CallMetadata {
use #scrate::dispatch::GetCallName;
Expand Down
4 changes: 0 additions & 4 deletions frame/support/procedural/src/pallet/expand/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,10 +351,6 @@ pub fn expand_call(def: &mut Def) -> proc_macro2::TokenStream {
}
}

// Deprecated, but will warn when used
#[allow(deprecated)]
impl<#type_impl_gen> #frame_support::weights::GetDispatchInfo for #call_ident<#type_use_gen> #where_clause {}

impl<#type_impl_gen> #frame_support::dispatch::GetCallName for #call_ident<#type_use_gen>
#where_clause
{
Expand Down
68 changes: 0 additions & 68 deletions frame/support/src/weights.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ece92d6

Please sign in to comment.