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 *);