summaryrefslogtreecommitdiff
path: root/xps/xpstop.c
diff options
context:
space:
mode:
authorHenry Stiles <henry.stiles@artifex.com>2017-05-11 13:56:04 -0600
committerHenry Stiles <henry.stiles@artifex.com>2017-05-19 12:52:20 -0600
commit00d5670774e9c56cb8bf6e9f877756c82d10536e (patch)
treeb834e5fbb06ffacc9d2f5830a3b34f618784ce00 /xps/xpstop.c
parentd585f6b8b2150c70a4fdc8d2b4d582012411f586 (diff)
downloadghostpdl-00d5670774e9c56cb8bf6e9f877756c82d10536e.tar.gz
Clean up documentation and simplify language implementation procs.
Diffstat (limited to 'xps/xpstop.c')
-rw-r--r--xps/xpstop.c13
1 files changed, 1 insertions, 12 deletions
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 */