From 635dad8721def9da27e13b849ba8e37023703501 Mon Sep 17 00:00:00 2001 From: Henry Stiles Date: Thu, 18 Oct 2018 13:31:08 -0600 Subject: 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()). --- xps/xpstop.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'xps') 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; -- cgit v1.2.1