diff options
author | Henry Stiles <henry.stiles@artifex.com> | 2017-05-11 13:56:04 -0600 |
---|---|---|
committer | Henry Stiles <henry.stiles@artifex.com> | 2017-05-19 12:52:20 -0600 |
commit | 00d5670774e9c56cb8bf6e9f877756c82d10536e (patch) | |
tree | b834e5fbb06ffacc9d2f5830a3b34f618784ce00 /xps/xpstop.c | |
parent | d585f6b8b2150c70a4fdc8d2b4d582012411f586 (diff) | |
download | ghostpdl-00d5670774e9c56cb8bf6e9f877756c82d10536e.tar.gz |
Clean up documentation and simplify language implementation procs.
Diffstat (limited to 'xps/xpstop.c')
-rw-r--r-- | xps/xpstop.c | 13 |
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 */ |