From dc94e2ab495c61e69834537508f518fb92258c7f Mon Sep 17 00:00:00 2001 From: Maksym Sobolyev Date: Tue, 16 Sep 2014 17:50:56 -0700 Subject: [PATCH] Remove utility function rrd_get_double(), it's been replaced by the rrd_strtodbl(). --- src/rrd_update.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/rrd_update.c b/src/rrd_update.c index 04ae6256..1f9d16c8 100644 --- a/src/rrd_update.c +++ b/src/rrd_update.c @@ -1343,25 +1343,6 @@ static int get_time_from_reading( return 0; } -static int -rrd_get_double(const char *cp, double *rval) -{ - char *endptr; - - errno = 0; - *rval = strtod(cp, &endptr); - if (errno) { - rrd_set_error("converting '%s' to float: %s", cp, rrd_strerror(errno)); - return -1; - } - if (endptr[0] != '\0') { - rrd_set_error("conversion of '%s' to float not complete: tail '%s'", - cp, endptr); - return -1; - } - return 0; -} - /* * Update pdp_new by interpreting the updvals according to the DS type * (COUNTER, GAUGE, etc.). -- 2.47.3