From 76a1f0f642df732722bee1f62cce37ebf9092ffc Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sun, 11 Dec 2011 12:39:42 +0100 Subject: [PATCH] Remove xr_draw_chart from cairo.h and make static The function xr_draw_chart is used only in cairo.c, so it seems there is little point in having it public. --- src/output/cairo.c | 5 ++++- src/output/cairo.h | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/output/cairo.c b/src/output/cairo.c index f74963d6..8d2ee24b 100644 --- a/src/output/cairo.c +++ b/src/output/cairo.c @@ -978,6 +978,9 @@ xr_rendering_measure (struct xr_rendering *r, int *w, int *h) } } +static void xr_draw_chart (const struct chart_item *, cairo_t *, + double x, double y, double width, double height); + /* Draws onto CR at least the region of R that is enclosed in (X,Y)-(X+W,Y+H), and possibly some additional parts. */ void @@ -1006,7 +1009,7 @@ xr_rendering_draw (struct xr_rendering *r, cairo_t *cr, 0, 0, CHART_WIDTH, CHART_HEIGHT); } -void +static void xr_draw_chart (const struct chart_item *chart_item, cairo_t *cr, double x, double y, double width, double height) { diff --git a/src/output/cairo.h b/src/output/cairo.h index fd9c7b92..af317d9c 100644 --- a/src/output/cairo.h +++ b/src/output/cairo.h @@ -80,8 +80,6 @@ bool xr_driver_need_new_page (const struct xr_driver *); bool xr_driver_is_page_blank (const struct xr_driver *); /* Render charts with Cairo. */ -void xr_draw_chart (const struct chart_item *, cairo_t *, - double x, double y, double width, double height); char *xr_draw_png_chart (const struct chart_item *, const char *file_name_template, int number); -- 2.30.2