From: oetiker Date: Tue, 10 Apr 2007 05:27:04 +0000 (+0000) Subject: the rrd_graph_check_vname function is not used anywhere in the code ... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8eb921b50d576b8c50da5dc20e2c6040c9f9beec;p=rrdtool-all.git the rrd_graph_check_vname function is not used anywhere in the code ... git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@1030 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index 5a54c3df..cb95dd89 100644 --- a/program/src/rrd_graph.c +++ b/program/src/rrd_graph.c @@ -3571,15 +3571,6 @@ rrd_graph_options(int argc, char *argv[],image_desc_t *im) im->step = max((long)im->step, (im->end-im->start)/im->xsize); } -int -rrd_graph_check_vname(image_desc_t *im, char *varname, char *err) -{ - if ((im->gdes[im->gdes_c-1].vidx=find_var(im,varname))==-1) { - rrd_set_error("Unknown variable '%s' in %s",varname,err); - return -1; - } - return 0; -} int rrd_graph_color(image_desc_t *im, char *var, char *err, int optional) { diff --git a/program/src/rrd_graph.h b/program/src/rrd_graph.h index 2e8e3bc3..e970d8b2 100644 --- a/program/src/rrd_graph.h +++ b/program/src/rrd_graph.h @@ -248,7 +248,6 @@ int rrd_graph(int, char **, char ***, int *, int *, FILE *, double *, double *); void rrd_graph_init(image_desc_t *); void rrd_graph_options(int, char **, image_desc_t *); void rrd_graph_script(int, char **, image_desc_t *, int); -int rrd_graph_check_vname(image_desc_t *, char *, char *); int rrd_graph_color(image_desc_t *, char *, char *, int); int bad_format(char *); int vdef_parse(struct graph_desc_t *,const char *const);