Skip to content

Commit 68d3928

Browse files
Remove non-functional JS locally-committed extension method (#7485)
Co-authored-by: Amaury Chamayou <[email protected]>
1 parent ba89704 commit 68d3928

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

include/ccf/js/registry.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,6 @@ namespace ccf::js
5656
const CustomJSEndpoint* endpoint,
5757
ccf::endpoints::EndpointContext& endpoint_ctx);
5858

59-
void execute_request_locally_committed(
60-
const CustomJSEndpoint* endpoint,
61-
ccf::endpoints::CommandEndpointContext& endpoint_ctx,
62-
const ccf::TxID& tx_id);
63-
6459
protected:
6560
std::string modules_map;
6661
std::string metadata_map;

src/js/registry.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -474,15 +474,6 @@ namespace ccf::js
474474
}
475475
}
476476

477-
void BaseDynamicJSEndpointRegistry::execute_request_locally_committed(
478-
const CustomJSEndpoint* endpoint,
479-
ccf::endpoints::CommandEndpointContext& endpoint_ctx,
480-
const ccf::TxID& tx_id)
481-
{
482-
(void)endpoint;
483-
ccf::endpoints::default_locally_committed_func(endpoint_ctx, tx_id);
484-
}
485-
486477
BaseDynamicJSEndpointRegistry::BaseDynamicJSEndpointRegistry(
487478
ccf::AbstractNodeContext& context, const std::string& kv_prefix) :
488479
ccf::UserEndpointRegistry(context),
@@ -858,7 +849,7 @@ namespace ccf::js
858849
const auto* endpoint = dynamic_cast<const CustomJSEndpoint*>(e.get());
859850
if (endpoint != nullptr)
860851
{
861-
execute_request_locally_committed(endpoint, endpoint_ctx, tx_id);
852+
ccf::endpoints::default_locally_committed_func(endpoint_ctx, tx_id);
862853
return;
863854
}
864855

0 commit comments

Comments
 (0)