From: Tobias Oetiker Date: Wed, 20 Aug 2014 15:40:44 +0000 (+0200) Subject: remove duplicate code X-Git-Tag: v1.5.0-rc1~47 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=df00205f8bc2d44ca141927f57c5f0ebee60bb8f;p=thirdparty%2Frrdtool-1.x.git remove duplicate code --- diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c index 1b10f903..b5e2eecb 100644 --- a/src/rrd_graph_helper.c +++ b/src/rrd_graph_helper.c @@ -141,11 +141,8 @@ int getLong(const char* v,long *val,char**extra,int base) { int getDouble(const char* v, double *val,char**extra) { /* try to execute the parser */ /* NOTE that this may be a bit different from the original parser */ - unsigned int strtod_ret; *extra=NULL; - strtod_ret = rrd_strtodbl( v, extra, val, NULL); - /* see rrd_strtodbl's return values for more infromation */ switch (rrd_strtodbl( v, extra, val, NULL)){ case 0: