From: Ben Pfaff Date: Mon, 30 Nov 2020 04:40:09 +0000 (-0800) Subject: cairo: Remove 'heading_vars' from struct xr_driver. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bb2b1cb52a4e0d2a00deac67428c732493bb839;p=pspp cairo: Remove 'heading_vars' from struct xr_driver. This was accessed in a few places but they didn't have any visible effects on behavior. --- diff --git a/src/output/cairo.c b/src/output/cairo.c index befab0b4f8..9edea91423 100644 --- a/src/output/cairo.c +++ b/src/output/cairo.c @@ -173,7 +173,6 @@ struct xr_driver int page_number; /* Current page number. */ int x, y; struct xr_render_fsm *fsm; - struct string_map heading_vars; }; static const struct output_driver_class cairo_driver_class; @@ -602,8 +601,6 @@ xr_allocate (const char *name, int device_type, struct string_map *o, output_driver_init (d, &cairo_driver_class, name, device_type); - string_map_init (&xr->heading_vars); - /* This is a nasty kluge for an issue that does not make sense. On any surface other than a screen (e.g. for output to PDF or PS or SVG), the fonts are way too big by default. A "9-point" font seems to appear about @@ -2234,12 +2231,10 @@ static struct xr_render_fsm * xr_render_text (struct xr_driver *xr, const struct text_item *text_item) { enum text_item_type type = text_item_get_type (text_item); - const char *text = text_item_get_text (text_item); switch (type) { case TEXT_ITEM_PAGE_TITLE: - string_map_replace (&xr->heading_vars, "PageTitle", text); break; case TEXT_ITEM_EJECT_PAGE: