summaryrefslogtreecommitdiff
path: root/source/fitz/shade.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/shade.c')
-rw-r--r--source/fitz/shade.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/source/fitz/shade.c b/source/fitz/shade.c
index 783a8630..b7e746d7 100644
--- a/source/fitz/shade.c
+++ b/source/fitz/shade.c
@@ -1087,45 +1087,3 @@ fz_bound_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, fz_rect *
}
return fz_transform_rect(s, &local_ctm);
}
-
-void
-fz_print_shade(fz_context *ctx, fz_output *out, fz_shade *shade)
-{
- int i;
-
- fz_write_printf(ctx, out, "shading {\n");
-
- switch (shade->type)
- {
- case FZ_FUNCTION_BASED: fz_write_printf(ctx, out, "\ttype function_based\n"); break;
- case FZ_LINEAR: fz_write_printf(ctx, out, "\ttype linear\n"); break;
- case FZ_RADIAL: fz_write_printf(ctx, out, "\ttype radial\n"); break;
- default: /* MESH */ fz_write_printf(ctx, out, "\ttype mesh\n"); break;
- }
-
- fz_write_printf(ctx, out, "\tbbox [%g %g %g %g]\n",
- shade->bbox.x0, shade->bbox.y0,
- shade->bbox.x1, shade->bbox.y1);
-
- fz_write_printf(ctx, out, "\tcolorspace %s\n", fz_colorspace_name(ctx, shade->colorspace));
-
- fz_write_printf(ctx, out, "\tmatrix [%g %g %g %g %g %g]\n",
- shade->matrix.a, shade->matrix.b, shade->matrix.c,
- shade->matrix.d, shade->matrix.e, shade->matrix.f);
-
- if (shade->use_background)
- {
- int n = fz_colorspace_n(ctx, shade->colorspace);
- fz_write_printf(ctx, out, "\tbackground [");
- for (i = 0; i < n; i++)
- fz_write_printf(ctx, out, "%s%g", i == 0 ? "" : " ", shade->background[i]);
- fz_write_printf(ctx, out, "]\n");
- }
-
- if (shade->use_function)
- {
- fz_write_printf(ctx, out, "\tfunction\n");
- }
-
- fz_write_printf(ctx, out, "}\n");
-}