From: Teemu Toivola Date: Mon, 16 Sep 2019 18:01:01 +0000 (+0300) Subject: drawdonut_libgd_native() is only used by tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65ee6eaeec8a5f3ea018d9521bc658382eef15a3;p=vnstat drawdonut_libgd_native() is only used by tests --- diff --git a/src/image.c b/src/image.c index f2f1374..d8c24ac 100644 --- a/src/image.c +++ b/src/image.c @@ -273,6 +273,7 @@ void drawdonut(IMAGECONTENT *ic, const int x, const int y, const float rxp, cons gdImageFilledArc(ic->im, x, y, DINRAD - 2, DINRAD - 2, 0, 360, ic->cbackground, 0); } +#ifdef CHECK_VNSTAT void drawdonut_libgd_native(IMAGECONTENT *ic, const int x, const int y, const float rxp, const float txp) { int rxarc = 0, txarc = 0; @@ -304,6 +305,7 @@ void drawdonut_libgd_native(IMAGECONTENT *ic, const int x, const int y, const fl // remove center from background filled circle, making it a donut gdImageFilledArc(ic->im, x, y, DINRAD - 2, DINRAD - 2, 0, 360, ic->cbackground, 0); } +#endif void drawhours(IMAGECONTENT *ic, const int x, const int y, const int rate) { diff --git a/src/image.h b/src/image.h index 1842e7c..c31820e 100644 --- a/src/image.h +++ b/src/image.h @@ -39,7 +39,9 @@ void drawlegend(IMAGECONTENT *ic, const int x, const int y); void drawbar(IMAGECONTENT *ic, const int x, const int y, const int len, const uint64_t rx, const uint64_t tx, const uint64_t max); void drawpole(IMAGECONTENT *ic, const int x, const int y, const int len, const uint64_t rx, const uint64_t tx, const uint64_t max); void drawdonut(IMAGECONTENT *ic, const int x, const int y, const float rxp, const float txp); +#ifdef CHECK_VNSTAT void drawdonut_libgd_native(IMAGECONTENT *ic, const int x, const int y, const float rxp, const float txp); +#endif void drawhours(IMAGECONTENT *ic, int x, int y, int rate); void drawhourly(IMAGECONTENT *ic, int rate); void drawlist(IMAGECONTENT *ic, const char *listname);