]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
libcupsfilters: Removed duplicate code in the apply_filters() function
authorTill Kamppeter <till.kamppeter@gmail.com>
Mon, 14 Jun 2021 19:28:27 +0000 (21:28 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Tue, 15 Jun 2021 19:01:04 +0000 (21:01 +0200)
(cherry picked from commit a6ef18c1303e27da15c24fb53ec5d9e21c3acbb3)

NEWS
cupsfilters/pdftoippprinter.c

diff --git a/NEWS b/NEWS
index 9c0a27e4073099456de4219c2cc6ef6c89a4d6ea..bd4d7ae516773b802522b752a251291bb33f69de 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ NEWS - OpenPrinting CUPS Filters v1.28.8 - 2021-03-25
 
 CHANGES IN V1.28.9
 
+       - libcupsfilters: Removed duplicate code in the
+         apply_filters() function.
        - driverless: If there are no driverless IPP printers
          available let "driverless" terminate with exit code 0 and
          not 1, to follow CUPS' standard of backends in discovery
index ea5427b8c0150805bcfc8737ef343af0db0960b1..eaa4ad3658258f2e41387ba9c724e1891e41e5f6 100644 (file)
@@ -415,20 +415,6 @@ apply_filters(int argc, char *argv[])
          exit_status = 1;
          goto error;
        }
-      }
-      if (!strcasecmp(p, "pclxl")) {
-       output_format = PCLXL;
-       if (filter_present("gstopxl") && access(CUPS_GHOSTSCRIPT, X_OK) == 0) {
-         cupsArrayAdd(filter_chain, "gstopxl");
-         /* Page logging into page_log is not done by gstopxl,
-            so let it be done by pdftopdf */
-         set_option_in_str(argv_nt[5], optbuflen, "page-logging", "on");
-       } else {
-         fprintf(stderr,
-                 "DEBUG: Filter gstopxl or Ghostscript (%s) missing for \"output-format=%s\", falling back to PCL 5c/e.\n",
-                 CUPS_GHOSTSCRIPT, val);
-         output_format = PCL;
-       }
       } else {
        output_format = PCL;
       }