From: Eero Tamminen Date: Fri, 19 Jan 2024 17:19:39 +0000 (+0200) Subject: src/daemon/utils_cache.c: remove unused uc_get_history() X-Git-Tag: 6.0.0-rc0~7^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4244%2Fhead;p=thirdparty%2Fcollectd.git src/daemon/utils_cache.c: remove unused uc_get_history() Signed-off-by: Eero Tamminen --- diff --git a/src/daemon/utils_cache.c b/src/daemon/utils_cache.c index b9c64ef51..970231883 100644 --- a/src/daemon/utils_cache.c +++ b/src/daemon/utils_cache.c @@ -714,20 +714,6 @@ int uc_get_history_by_name(const char *name, gauge_t *ret_history, return 0; } /* int uc_get_history_by_name */ -int uc_get_history(metric_t const *m, gauge_t *ret_history, size_t num_steps) { - strbuf_t buf = STRBUF_CREATE; - int status = metric_identity(&buf, m); - if (status != 0) { - ERROR("uc_update: metric_identity failed with status %d.", status); - STRBUF_DESTROY(buf); - return status; - } - - int ret = uc_get_history_by_name(buf.ptr, ret_history, num_steps); - STRBUF_DESTROY(buf); - return ret; -} /* int uc_get_history */ - int uc_get_hits(metric_t const *m) { strbuf_t buf = STRBUF_CREATE; int status = metric_identity(&buf, m); diff --git a/src/daemon/utils_cache.h b/src/daemon/utils_cache.h index 8ae223b08..a600737ca 100644 --- a/src/daemon/utils_cache.h +++ b/src/daemon/utils_cache.h @@ -64,7 +64,6 @@ int uc_inc_hits(metric_t const *m, int step); int uc_set_callbacks_mask(const char *name, unsigned long callbacks_mask); -int uc_get_history(metric_t const *m, gauge_t *ret_history, size_t num_steps); int uc_get_history_by_name(const char *name, gauge_t *ret_history, size_t num_steps);