]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
src/daemon/utils_cache.c: remove unused uc_get_history() 4244/head
authorEero Tamminen <eero.t.tamminen@intel.com>
Fri, 19 Jan 2024 17:19:39 +0000 (19:19 +0200)
committerEero Tamminen <eero.t.tamminen@intel.com>
Fri, 19 Jan 2024 17:19:39 +0000 (19:19 +0200)
Signed-off-by: Eero Tamminen <eero.t.tamminen@intel.com>
src/daemon/utils_cache.c
src/daemon/utils_cache.h

index b9c64ef5141c20b256f5b1ce101ace3d5a4acd7f..97023188350beff656f82475988c9b00e37db5c9 100644 (file)
@@ -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);
index 8ae223b088d6311d44595223ee85da13037a19fc..a600737ca382fdafe64b2d4f86857df6bbc80839 100644 (file)
@@ -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);