From: Christian Hopps Date: Fri, 9 Jun 2023 20:54:13 +0000 (-0400) Subject: mgmtd: remove unused code X-Git-Tag: frr-9.0-rc~5^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=869d3252eac3176933f5d6c82c471ffc719f4480;p=matthieu%2Ffrr.git mgmtd: remove unused code Signed-off-by: Christian Hopps (cherry picked from commit f0fa4c03700e775f7ed7ebf6cfef20d9d5ac7ef9) --- diff --git a/mgmtd/mgmt_txn.c b/mgmtd/mgmt_txn.c index 588693b7e3..6b85bd68f3 100644 --- a/mgmtd/mgmt_txn.c +++ b/mgmtd/mgmt_txn.c @@ -2618,26 +2618,6 @@ int mgmt_txn_notify_be_cfg_apply_reply(uint64_t txn_id, bool success, return 0; } -int mgmt_txn_send_commit_config_reply(uint64_t txn_id, - enum mgmt_result result, - const char *error_if_any) -{ - struct mgmt_txn_ctx *txn; - - txn = mgmt_txn_id2ctx(txn_id); - if (!txn) - return -1; - - if (!txn->commit_cfg_req) { - MGMTD_TXN_ERR("NO commit in-progress txn-id: %" PRIu64 - " session-id: %" PRIu64, - txn->txn_id, txn->session_id); - return -1; - } - - return mgmt_txn_send_commit_cfg_reply(txn, result, error_if_any); -} - int mgmt_txn_send_get_config_req(uint64_t txn_id, uint64_t req_id, Mgmtd__DatastoreId ds_id, struct mgmt_ds_ctx *ds_ctx, diff --git a/mgmtd/mgmt_txn.h b/mgmtd/mgmt_txn.h index 0718397138..1a9f6d8502 100644 --- a/mgmtd/mgmt_txn.h +++ b/mgmtd/mgmt_txn.h @@ -176,10 +176,6 @@ extern int mgmt_txn_send_commit_config_req(uint64_t txn_id, uint64_t req_id, bool validate_only, bool abort, bool implicit); -extern int mgmt_txn_send_commit_config_reply(uint64_t txn_id, - enum mgmt_result result, - const char *error_if_any); - /* * Send get-config request to be processed later in transaction. *