]> git.puffer.fish Git - matthieu/frr.git/commitdiff
mgmtd: remove unused code
authorChristian Hopps <chopps@labn.net>
Fri, 9 Jun 2023 20:54:13 +0000 (16:54 -0400)
committerChristian Hopps <chopps@labn.net>
Mon, 12 Jun 2023 06:32:29 +0000 (02:32 -0400)
Signed-off-by: Christian Hopps <chopps@labn.net>
mgmtd/mgmt_txn.c
mgmtd/mgmt_txn.h

index 588693b7e3c14ff2e4e23355bc2f3f724833b018..6b85bd68f321254edef72d7c882fac4e04873c2e 100644 (file)
@@ -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,
index 0718397138578b326ec23852459fab9e05196f99..1a9f6d8502b255b31982cd8e490a3fc4979f84a7 100644 (file)
@@ -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.
  *