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

Remove deprecated old weight items #14706

Merged
merged 3 commits into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.