Skip to content

Commit

Permalink
remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Jul 26, 2024
1 parent 733e7f0 commit 07c66be
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions pop-api/src/v0/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,13 @@ impl From<StatusCode> for Error {
}
}

/// Helper method to build `ChainExtensionMethod` for version `v0`
///
/// Parameters:
/// - 'function': The ID of the function
/// - 'module': The index of the runtime module
/// - 'dispatchable': The index of the module dispatchable functions
fn build_extension_method_v0(
function: u8,
module: u8,
dispatchable: u8,
) -> ChainExtensionMethod<(), (), (), false> {
build_extension_method(V0, function, module, dispatchable)
}

/// Helper method to build a dispatch call `ChainExtensionMethod`
///
/// Parameters:
/// - 'module': The index of the runtime module
/// - 'dispatchable': The index of the module dispatchable functions
fn build_dispatch(module: u8, dispatchable: u8) -> ChainExtensionMethod<(), (), (), false> {
build_extension_method_v0(DISPATCH, module, dispatchable)
build_extension_method(V0, DISPATCH, module, dispatchable)
}

/// Helper method to build a dispatch call `ChainExtensionMethod`
Expand All @@ -52,5 +38,5 @@ fn build_dispatch(module: u8, dispatchable: u8) -> ChainExtensionMethod<(), (),
/// - 'module': The index of the runtime module
/// - 'state_query': The index of the runtime state query
fn build_read_state(module: u8, state_query: u8) -> ChainExtensionMethod<(), (), (), false> {
build_extension_method_v0(READ_STATE, module, state_query)
build_extension_method(V0, READ_STATE, module, state_query)
}

0 comments on commit 07c66be

Please sign in to comment.