PDF: Remove copy_page

Now that the content stream is no longer split into multiple streams
it is not possible to implement a copy_page function that shares the
common content between pages.

Remove this function so the paginated surface will rewrite the
content from the meta surface.
This commit is contained in:
Adrian Johnson 2008-01-07 21:17:26 +10:30
parent e2adb921f8
commit 21f842f0df

View file

@ -2686,19 +2686,6 @@ _cairo_pdf_surface_unselect_pattern (cairo_pdf_surface_t *surface)
_cairo_output_stream_printf (surface->output, "Q\r\n");
}
static cairo_int_status_t
_cairo_pdf_surface_copy_page (void *abstract_surface)
{
cairo_pdf_surface_t *surface = abstract_surface;
cairo_int_status_t status;
status = _cairo_pdf_surface_close_content_stream (surface);
if (status)
return status;
return _cairo_pdf_surface_write_page (surface);
}
static cairo_int_status_t
_cairo_pdf_surface_show_page (void *abstract_surface)
{
@ -4577,7 +4564,7 @@ static const cairo_surface_backend_t cairo_pdf_surface_backend = {
NULL, /* composite */
NULL, /* fill_rectangles */
NULL, /* composite_trapezoids */
_cairo_pdf_surface_copy_page,
NULL, /* _cairo_pdf_surface_copy_page */
_cairo_pdf_surface_show_page,
NULL, /* set_clip_region */
_cairo_pdf_surface_intersect_clip_path,