diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2021-06-30 15:26:09 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2021-07-01 00:27:56 +0100 |
commit | 8e1859c5fa8ff7af476e8317f8efc3f762c935cc (patch) | |
tree | 97523332af4d8e149437e3991d1fcb2b4b117570 /base/gxpcmap.c | |
parent | 2f7f448a4b73b8f996fa9196527da1db5cc520e2 (diff) | |
download | ghostpdl-8e1859c5fa8ff7af476e8317f8efc3f762c935cc.tar.gz |
Remove "unread" param from get_bits_rectangle.
No one sets it. No one reads it. It's pointless, so excise it.
Diffstat (limited to 'base/gxpcmap.c')
-rw-r--r-- | base/gxpcmap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/base/gxpcmap.c b/base/gxpcmap.c index 1e41b40c8..bdcca0c8e 100644 --- a/base/gxpcmap.c +++ b/base/gxpcmap.c @@ -666,7 +666,7 @@ blank_unmasked_bits(gx_device * mask, GB_COLORS_NATIVE | GB_ALPHA_NONE); params.data[0] = min; code = (*dev_proc(mask, get_bits_rectangle))(mask, &rect, - ¶ms, NULL); + ¶ms); if (code < 0) goto fail; mine = params.data[0]; @@ -720,7 +720,7 @@ blank_unmasked_bits(gx_device * mask, GB_COLORS_NATIVE | GB_ALPHA_NONE); params.data[0] = min; code = (*dev_proc(mask, get_bits_rectangle))(mask, &rect, - ¶ms, NULL); + ¶ms); if (code < 0) goto fail; mine = params.data[0]; @@ -755,7 +755,7 @@ fail: /****** SHOULD USE MASK TO DEFINE UNREAD AREA *****/ static int pattern_accum_get_bits_rectangle(gx_device * dev, const gs_int_rect * prect, - gs_get_bits_params_t * params, gs_int_rect ** unread) + gs_get_bits_params_t * params) { gx_device_pattern_accum *const padev = (gx_device_pattern_accum *) dev; int code; @@ -765,7 +765,7 @@ pattern_accum_get_bits_rectangle(gx_device * dev, const gs_int_rect * prect, if (padev->mask) params2.options &= ~GB_RETURN_POINTER; code = (*dev_proc(padev->target, get_bits_rectangle)) - (padev->target, prect, ¶ms2, unread); + (padev->target, prect, ¶ms2); /* If we have a mask, then unmarked pixels of the bits * will be undefined. Strictly speaking it makes no * sense for us to return any value here, but the only |