diff --git a/substrate/frame/balances/src/lib.rs b/substrate/frame/balances/src/lib.rs
index b7c64da460..4471ed91a9 100644
--- a/substrate/frame/balances/src/lib.rs
+++ b/substrate/frame/balances/src/lib.rs
@@ -271,8 +271,6 @@ pub mod pallet {
/// - `transfer_keep_alive` works the same way as `transfer`, but has an additional check
/// that the transfer will not kill the origin account.
/// ---------------------------------
- /// - Base Weight: 73.64 µs, worst case scenario (account created, account removed)
- /// - DB Weight: 1 Read and 1 Write to destination account
/// - Origin account is already in memory, so no DB operations for them.
/// #
#[pallet::weight(T::WeightInfo::transfer())]
@@ -300,16 +298,6 @@ pub mod pallet {
/// it will reset the account nonce (`frame_system::AccountNonce`).
///
/// The dispatch origin for this call is `root`.
- ///
- /// #
- /// - Independent of the arguments.
- /// - Contains a limited number of reads and writes.
- /// ---------------------
- /// - Base Weight:
- /// - Creating: 27.56 µs
- /// - Killing: 35.11 µs
- /// - DB Weight: 1 Read, 1 Write to `who`
- /// #
#[pallet::weight(
T::WeightInfo::set_balance_creating() // Creates a new account.
.max(T::WeightInfo::set_balance_killing()) // Kills an existing account.
@@ -381,11 +369,6 @@ pub mod pallet {
/// 99% of the time you want [`transfer`] instead.
///
/// [`transfer`]: struct.Pallet.html#method.transfer
- /// #
- /// - Cheaper than transfer because account cannot be killed.
- /// - Base Weight: 51.4 µs
- /// - DB Weight: 1 Read and 1 Write to dest (sender is in overlay already)
- /// #
#[pallet::weight(T::WeightInfo::transfer_keep_alive())]
pub fn transfer_keep_alive(
origin: OriginFor,
diff --git a/substrate/frame/scheduler/src/lib.rs b/substrate/frame/scheduler/src/lib.rs
index d59c42cc85..d25fc3b376 100644
--- a/substrate/frame/scheduler/src/lib.rs
+++ b/substrate/frame/scheduler/src/lib.rs
@@ -243,16 +243,6 @@ pub mod pallet {
#[pallet::hooks]
impl Hooks> for Pallet {
/// Execute the scheduled calls
- ///
- /// #
- /// - S = Number of already scheduled calls
- /// - N = Named scheduled calls
- /// - P = Periodic Calls
- /// - Base Weight: 9.243 + 23.45 * S µs
- /// - DB Weight:
- /// - Read: Agenda + Lookup * N + Agenda(Future) * P
- /// - Write: Agenda + Lookup * N + Agenda(future) * P
- /// #
fn on_initialize(now: T::BlockNumber) -> Weight {
let limit = T::MaximumWeight::get();
let mut queued = Agenda::::take(now)
@@ -352,15 +342,6 @@ pub mod pallet {
#[pallet::call]
impl Pallet {
/// Anonymously schedule a task.
- ///
- /// #
- /// - S = Number of already scheduled calls
- /// - Base Weight: 22.29 + .126 * S µs
- /// - DB Weight:
- /// - Read: Agenda
- /// - Write: Agenda
- /// - Will use base weight of 25 which should be good for up to 30 scheduled calls
- /// #
#[pallet::weight(::WeightInfo::schedule(T::MaxScheduledPerBlock::get()))]
pub fn schedule(
origin: OriginFor,
@@ -382,15 +363,6 @@ pub mod pallet {
}
/// Cancel an anonymously scheduled task.
- ///
- /// #
- /// - S = Number of already scheduled calls
- /// - Base Weight: 22.15 + 2.869 * S µs
- /// - DB Weight:
- /// - Read: Agenda
- /// - Write: Agenda, Lookup
- /// - Will use base weight of 100 which should be good for up to 30 scheduled calls
- /// #
#[pallet::weight(::WeightInfo::cancel(T::MaxScheduledPerBlock::get()))]
pub fn cancel(origin: OriginFor, when: T::BlockNumber, index: u32) -> DispatchResult {
T::ScheduleOrigin::ensure_origin(origin.clone())?;
@@ -400,15 +372,6 @@ pub mod pallet {
}
/// Schedule a named task.
- ///
- /// #
- /// - S = Number of already scheduled calls
- /// - Base Weight: 29.6 + .159 * S µs
- /// - DB Weight:
- /// - Read: Agenda, Lookup
- /// - Write: Agenda, Lookup
- /// - Will use base weight of 35 which should be good for more than 30 scheduled calls
- /// #
#[pallet::weight(::WeightInfo::schedule_named(T::MaxScheduledPerBlock::get()))]
pub fn schedule_named(
origin: OriginFor,
@@ -432,15 +395,6 @@ pub mod pallet {
}
/// Cancel a named scheduled task.
- ///
- /// #
- /// - S = Number of already scheduled calls
- /// - Base Weight: 24.91 + 2.907 * S µs
- /// - DB Weight:
- /// - Read: Agenda, Lookup
- /// - Write: Agenda, Lookup
- /// - Will use base weight of 100 which should be good for up to 30 scheduled calls
- /// #
#[pallet::weight(::WeightInfo::cancel_named(T::MaxScheduledPerBlock::get()))]
pub fn cancel_named(origin: OriginFor, id: Vec) -> DispatchResult {
T::ScheduleOrigin::ensure_origin(origin.clone())?;
diff --git a/substrate/frame/system/src/lib.rs b/substrate/frame/system/src/lib.rs
index 12361ed859..0b00a7d8f5 100644
--- a/substrate/frame/system/src/lib.rs
+++ b/substrate/frame/system/src/lib.rs
@@ -351,14 +351,6 @@ pub mod pallet {
}
/// Set the number of pages in the WebAssembly environment's heap.
- ///
- /// #
- /// - `O(1)`
- /// - 1 storage write.
- /// - Base Weight: 1.405 µs
- /// - 1 write to HEAP_PAGES
- /// - 1 digest item
- /// #
#[pallet::weight((T::SystemWeightInfo::set_heap_pages(), DispatchClass::Operational))]
pub fn set_heap_pages(origin: OriginFor, pages: u64) -> DispatchResultWithPostInfo {
ensure_root(origin)?;
@@ -407,13 +399,6 @@ pub mod pallet {
}
/// Set some items of storage.
- ///
- /// #
- /// - `O(I)` where `I` length of `items`
- /// - `I` storage writes (`O(1)`).
- /// - Base Weight: 0.568 * i µs
- /// - Writes: Number of items
- /// #
#[pallet::weight((
T::SystemWeightInfo::set_storage(items.len() as u32),
DispatchClass::Operational,
@@ -430,13 +415,6 @@ pub mod pallet {
}
/// Kill some items from storage.
- ///
- /// #
- /// - `O(IK)` where `I` length of `keys` and `K` length of one key
- /// - `I` storage deletions.
- /// - Base Weight: .378 * i µs
- /// - Writes: Number of items
- /// #
#[pallet::weight((
T::SystemWeightInfo::kill_storage(keys.len() as u32),
DispatchClass::Operational,
@@ -453,13 +431,6 @@ pub mod pallet {
///
/// **NOTE:** We rely on the Root origin to provide us the number of subkeys under
/// the prefix we are removing to accurately calculate the weight of this function.
- ///
- /// #
- /// - `O(P)` where `P` amount of keys with prefix `prefix`
- /// - `P` storage deletions.
- /// - Base Weight: 0.834 * P µs
- /// - Writes: Number of subkeys + 1
- /// #
#[pallet::weight((
T::SystemWeightInfo::kill_prefix(_subkeys.saturating_add(1)),
DispatchClass::Operational,