diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2020-03-25 11:48:20 -0700 |
---|---|---|
committer | Michael Vrhel <michael.vrhel@artifex.com> | 2020-03-27 09:55:17 -0700 |
commit | b9fb2ce576a8a8b6b26fd8ad03b03e75913b7f8a (patch) | |
tree | d363f002fc22144eb5ff151f0b5665c068f93ddc | |
parent | 5377c58f555cedda66323bd1cedcde9408a01947 (diff) | |
download | ghostpdl-b9fb2ce576a8a8b6b26fd8ad03b03e75913b7f8a.tar.gz |
clean up ztrans.c
-rw-r--r-- | psi/ztrans.c | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/psi/ztrans.c b/psi/ztrans.c index d7a9c8cb6..0b4ad2664 100644 --- a/psi/ztrans.c +++ b/psi/ztrans.c @@ -41,32 +41,6 @@ /* ------ Utilities ------ */ -static int -bogus_set_function(gs_gstate *pgs, double x) -{ - return 0; -} - -static float -bogus_get_function(gs_gstate *pgs) -{ - return 0; -} - -static int -set_float_value(i_ctx_t *i_ctx_p, int (*set_value)(gs_gstate *, double)) -{ - os_ptr op = osp; - double value; - int code; - - if (real_param(op, &value) < 0) - return_op_typecheck(op); - if ((code = set_value(igs, value)) < 0) - return code; - pop(1); - return 0; -} static int current_float_value(i_ctx_t *i_ctx_p, @@ -135,34 +109,6 @@ zcurrentblendmode(i_ctx_t *i_ctx_p) return 0; } -/* <0..1> .setopacityalpha - */ -static int -zsetopacityalpha(i_ctx_t *i_ctx_p) -{ - return set_float_value(i_ctx_p, bogus_set_function); -} - -/* - .currentopacityalpha <0..1> */ -static int -zcurrentopacityalpha(i_ctx_t *i_ctx_p) -{ - return current_float_value(i_ctx_p, bogus_get_function); -} - -/* <0..1> .setshapealpha - */ -static int -zsetshapealpha(i_ctx_t *i_ctx_p) -{ - return set_float_value(i_ctx_p, bogus_set_function); -} - -/* - .currentshapealpha <0..1> */ -static int -zcurrentshapealpha(i_ctx_t *i_ctx_p) -{ - return current_float_value(i_ctx_p, bogus_get_function); -} - /* <bool> .settextknockout - */ static int zsettextknockout(i_ctx_t *i_ctx_p) @@ -695,10 +641,6 @@ zcurrentSMask(i_ctx_t *i_ctx_p) const op_def ztrans1_op_defs[] = { {"1.setblendmode", zsetblendmode}, {"0.currentblendmode", zcurrentblendmode}, - {"1.setopacityalpha", zsetopacityalpha}, - {"0.currentopacityalpha", zcurrentopacityalpha}, - {"1.setshapealpha", zsetshapealpha}, - {"0.currentshapealpha", zcurrentshapealpha}, {"1.settextknockout", zsettextknockout}, {"0.currenttextknockout", zcurrenttextknockout}, {"0.pushextendedgstate", zpushextendedgstate}, |