From: Florian Forster Date: Tue, 11 Oct 2016 15:27:11 +0000 (+0200) Subject: src/utils_latency.[ch]: Remove latency_counter_get_start_time(). X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3260a235fc6e38990c380df92b25f5ddf812a189;p=collectd.git src/utils_latency.[ch]: Remove latency_counter_get_start_time(). --- diff --git a/src/utils_latency.c b/src/utils_latency.c index 1a82eab6..24234f83 100644 --- a/src/utils_latency.c +++ b/src/utils_latency.c @@ -290,15 +290,6 @@ cdtime_t latency_counter_get_percentile (latency_counter_t *lc, /* {{{ */ return (latency_interpolated); } /* }}} cdtime_t latency_counter_get_percentile */ -cdtime_t latency_counter_get_start_time (const latency_counter_t *lc) /* {{{ */ -{ - if (lc == NULL) - return (0); - - return lc->start_time; -} /* }}} cdtime_t latency_counter_get_start_time */ - - double latency_counter_get_rate (const latency_counter_t *lc, /* {{{ */ cdtime_t lower, cdtime_t upper, const cdtime_t now) { diff --git a/src/utils_latency.h b/src/utils_latency.h index add71842..f531d77b 100644 --- a/src/utils_latency.h +++ b/src/utils_latency.h @@ -48,7 +48,6 @@ size_t latency_counter_get_num (latency_counter_t *lc); cdtime_t latency_counter_get_average (latency_counter_t *lc); cdtime_t latency_counter_get_percentile (latency_counter_t *lc, double percent); -cdtime_t latency_counter_get_start_time (const latency_counter_t *lc); /* * NAME