From: Florian Forster Date: Fri, 17 Jul 2020 11:36:08 +0000 (+0200) Subject: src/daemon/plugin_mock.c: Remove metrics_list_t. X-Git-Tag: 6.0.0-rc0~144^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd4ca47e667e672ed79096d9c2a17ccf07adc069;p=thirdparty%2Fcollectd.git src/daemon/plugin_mock.c: Remove metrics_list_t. --- diff --git a/src/daemon/plugin_mock.c b/src/daemon/plugin_mock.c index 7d56eeafa..180c91935 100644 --- a/src/daemon/plugin_mock.c +++ b/src/daemon/plugin_mock.c @@ -248,21 +248,3 @@ int plugin_thread_create(__attribute__((unused)) pthread_t *thread, * would be to hard-code the top-level config keys in daemon/collectd.c to avoid * having these references in daemon/configfile.c. */ int fc_configure(const oconfig_item_t *ci) { return ENOTSUP; } - -int plugin_convert_values_to_metrics(__attribute__((unused)) - value_list_t const *vl, - __attribute__((unused)) - metrics_list_t **ml) { - return ENOTSUP; -} - -void destroy_metrics_list(metrics_list_t *ml) { - while (ml != NULL) { - identity_destroy(ml->metric.identity); - meta_data_destroy(ml->metric.meta); - - metrics_list_t *next = ml->next_p; - free(ml); - ml = next; - } -}