From af110d0c0cf098431f178d7408afd62d7ce5521b Mon Sep 17 00:00:00 2001 From: Eero Tamminen Date: Fri, 19 Jan 2024 19:19:39 +0200 Subject: [PATCH] src/daemon/utils_cache.c: remove unused uc_get_history() Signed-off-by: Eero Tamminen --- src/daemon/utils_cache.c | 14 -------------- src/daemon/utils_cache.h | 1 - 2 files changed, 15 deletions(-) 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); -- 2.39.5