cairo: Remove 'heading_vars' from struct xr_driver.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 30 Nov 2020 04:40:09 +0000 (20:40 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 30 Nov 2020 17:13:20 +0000 (09:13 -0800)
This was accessed in a few places but they didn't have any visible effects
on behavior.

src/output/cairo.c

index befab0b4f8f6cac32ba883391c6efeeffea17e6f..9edea914236d208fa36d8d89ba0968f5a7cbcea1 100644 (file)
@@ -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: