summaryrefslogtreecommitdiff
path: root/xps
diff options
context:
space:
mode:
authorHenry Stiles <henry.stiles@artifex.com>2018-10-18 13:31:08 -0600
committerHenry Stiles <henry.stiles@artifex.com>2018-10-18 13:57:23 -0600
commit635dad8721def9da27e13b849ba8e37023703501 (patch)
treef5cfbbb23a727fb49b1c711d8b3f51c2270b1a3c /xps
parenteb473839eed3eeaf9acc7db4d88a3a0a8ca5f432 (diff)
downloadghostpdl-635dad8721def9da27e13b849ba8e37023703501.tar.gz
Remove unnecessary gs_opendevice() calls
For reasons unknown the target device was being opened prior to the languages setting and opening the device with gs_setdevice_no_erase(). This is unnecessary and apparently wrong, gs_opendevice() does not properly fill in the the device procedures (gx_device_fill_in_procs()).
Diffstat (limited to 'xps')
-rw-r--r--xps/xpstop.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/xps/xpstop.c b/xps/xpstop.c
index 6ec6d21ab..feb7a9357 100644
--- a/xps/xpstop.c
+++ b/xps/xpstop.c
@@ -165,10 +165,6 @@ xps_imp_set_device(pl_interp_implementation_t *impl, gx_device *pdevice)
gs_c_param_list list;
int code;
- code = gs_opendevice(pdevice);
- if (code < 0)
- goto cleanup_setdevice;
-
code = gs_setdevice_no_erase(ctx->pgs, pdevice);
if (code < 0)
goto cleanup_setdevice;