From 00d5670774e9c56cb8bf6e9f877756c82d10536e Mon Sep 17 00:00:00 2001 From: Henry Stiles Date: Thu, 11 May 2017 13:56:04 -0600 Subject: Clean up documentation and simplify language implementation procs. --- xps/xpstop.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'xps/xpstop.c') diff --git a/xps/xpstop.c b/xps/xpstop.c index c7e787a84..9689c17cf 100644 --- a/xps/xpstop.c +++ b/xps/xpstop.c @@ -380,19 +380,8 @@ xps_imp_remove_device(pl_interp_implementation_t *impl) xps_interp_instance_t *instance = impl->interp_client_data; xps_context_t *ctx = instance->ctx; - int code = 0; /* first error status encountered */ - int error; - /* return to original gstate */ - gs_grestore_only(ctx->pgs); /* destroys gs_save stack */ - - /* Deselect device */ - /* NB */ - error = gs_nulldevice(ctx->pgs); - if (code >= 0) - code = error; - - return code; + return gs_grestore_only(ctx->pgs); /* destroys gs_save stack */ } /* Deallocate a interpreter instance */ -- cgit v1.2.1