From: John Darrington <john@darrington.wattle.id.au>
Date: Sun, 11 Dec 2011 11:39:42 +0000 (+0100)
Subject: Remove xr_draw_chart from cairo.h and make static
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76a1f0f642df732722bee1f62cce37ebf9092ffc;p=pspp

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.
---

diff --git a/src/output/cairo.c b/src/output/cairo.c
index f74963d682..8d2ee24b2f 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 fd9c7b9204..af317d9c6b 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);