From 17ffa368fb9658feb138d1f3d63c7e8b179c7922 Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 10 Apr 2007 05:27:04 +0000 Subject: [PATCH] the rrd_graph_check_vname function is not used anywhere in the code ... git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1030 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_graph.c | 9 --------- src/rrd_graph.h | 1 - 2 files changed, 10 deletions(-) diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 5a54c3d..cb95dd8 100644 --- a/src/rrd_graph.c +++ b/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/src/rrd_graph.h b/src/rrd_graph.h index 2e8e3bc..e970d8b 100644 --- a/src/rrd_graph.h +++ b/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); -- 2.30.2