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

Commit ece92d6

Browse files
authored
Remove deprecated old weight items (#14706)
* remove old weights frame-support * ".git/.scripts/commands/fmt/fmt.sh" --------- Co-authored-by: command-bot <>
1 parent 3a271a5 commit ece92d6

File tree

3 files changed

+1
-75
lines changed

3 files changed

+1
-75
lines changed

frame/support/procedural/src/construct_runtime/expand/call.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ pub fn expand_outer_dispatch(
123123
}
124124
}
125125
}
126-
// Deprecated, but will warn when used
127-
#[allow(deprecated)]
128-
impl #scrate::weights::GetDispatchInfo for RuntimeCall {}
126+
129127
impl #scrate::dispatch::GetCallMetadata for RuntimeCall {
130128
fn get_call_metadata(&self) -> #scrate::dispatch::CallMetadata {
131129
use #scrate::dispatch::GetCallName;

frame/support/procedural/src/pallet/expand/call.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,6 @@ pub fn expand_call(def: &mut Def) -> proc_macro2::TokenStream {
351351
}
352352
}
353353

354-
// Deprecated, but will warn when used
355-
#[allow(deprecated)]
356-
impl<#type_impl_gen> #frame_support::weights::GetDispatchInfo for #call_ident<#type_use_gen> #where_clause {}
357-
358354
impl<#type_impl_gen> #frame_support::dispatch::GetCallName for #call_ident<#type_use_gen>
359355
#where_clause
360356
{

frame/support/src/weights.rs

Lines changed: 0 additions & 68 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)