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-Tag: collectd-5.7.0~20 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f66916deea905254061bb07245e007471faf2ecf;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