From 2088934b0c75a4e2055688582be6f27770f89f79 Mon Sep 17 00:00:00 2001 From: Juan Jose Nicola Date: Mon, 7 Oct 2024 13:00:48 -0300 Subject: [PATCH] remove gvm_json_pull_event_reset() because duplicates gvm_json_pull_event_cleanup() --- util/jsonpull.c | 14 -------------- util/jsonpull.h | 3 --- 2 files changed, 17 deletions(-) diff --git a/util/jsonpull.c b/util/jsonpull.c index 69787175..32e3a8a7 100644 --- a/util/jsonpull.c +++ b/util/jsonpull.c @@ -110,20 +110,6 @@ gvm_json_pull_event_init (gvm_json_pull_event_t *event) memset (event, 0, sizeof (gvm_json_pull_event_t)); } -/** - * @brief Resets a JSON pull event data structure for reuse. - * - * @param[in] event The event structure to reset - */ -void -gvm_json_pull_event_reset (gvm_json_pull_event_t *event) -{ - cJSON_free (event->value); - if (event->error_message) - g_free (event->error_message); - memset (event, 0, sizeof (gvm_json_pull_event_t)); -} - /** * @brief Frees all data of JSON pull event data structure. * diff --git a/util/jsonpull.h b/util/jsonpull.h index 0b057a49..50d36578 100644 --- a/util/jsonpull.h +++ b/util/jsonpull.h @@ -109,9 +109,6 @@ gvm_json_pull_path_elem_free (gvm_json_path_elem_t *); void gvm_json_pull_event_init (gvm_json_pull_event_t *); -void -gvm_json_pull_event_reset (gvm_json_pull_event_t *); - void gvm_json_pull_event_cleanup (gvm_json_pull_event_t *);