]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Remove utility function rrd_get_double(), it's been replaced
authorMaksym Sobolyev <sobomax@sippysoft.com>
Wed, 17 Sep 2014 00:50:56 +0000 (17:50 -0700)
committerMaksym Sobolyev <sobomax@sippysoft.com>
Wed, 17 Sep 2014 00:50:56 +0000 (17:50 -0700)
by the rrd_strtodbl().

src/rrd_update.c

index 04ae6256d2d28269980048e9cd8d94fbec6c69ad..1f9d16c8df1098310d07d3903f12332a07d02555 100644 (file)
@@ -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.).