From 2ff120acac188a66088421565328ebda3b0a1c48 Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Thu, 27 Jan 2022 08:01:48 +0100 Subject: [PATCH] Removed purge-jobs legacy code from CGI scripts and templates Fixes #325 --- CHANGES.md | 1 + cgi-bin/admin.c | 4 ++-- cgi-bin/jobs.c | 2 +- templates/class.tmpl | 2 +- templates/da/class.tmpl | 2 +- templates/de/class.tmpl | 2 +- templates/es/class.tmpl | 2 +- templates/fr/class.tmpl | 2 +- templates/ja/class.tmpl | 2 +- templates/pt_BR/class.tmpl | 2 +- templates/ru/class.tmpl | 2 +- 11 files changed, 12 insertions(+), 11 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 6bc64396dd..19fd31dcc3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -14,6 +14,7 @@ Changes in CUPS v2.4.1 (TBA) - Removed remaining legacy code for `RIP_MAX_CACHE` environment variable (Issue #323) - Removed deprecated directives from cupsctl and cups-files.conf (Issue #300) +- Removed `purge-jobs` legacy code from CGI scripts and templates (Issue #325) Changes in CUPS v2.4.0 (29th November 2021) diff --git a/cgi-bin/admin.c b/cgi-bin/admin.c index cedb1f3eb9..24cab0c36d 100644 --- a/cgi-bin/admin.c +++ b/cgi-bin/admin.c @@ -2271,7 +2271,7 @@ do_set_allowed_users(http_t *http) /* I - HTTP connection */ ipp_t *request, /* IPP request */ *response; /* IPP response */ char uri[HTTP_MAX_URI]; /* Printer URI */ - const char *printer, /* Printer name (purge-jobs) */ + const char *printer, /* Printer name */ *is_class, /* Is a class? */ *users, /* List of users or groups */ *type; /* Allow/deny type */ @@ -2536,7 +2536,7 @@ do_set_default(http_t *http) /* I - HTTP connection */ const char *title; /* Page title */ ipp_t *request; /* IPP request */ char uri[HTTP_MAX_URI]; /* Printer URI */ - const char *printer, /* Printer name (purge-jobs) */ + const char *printer, /* Printer name */ *is_class; /* Is a class? */ diff --git a/cgi-bin/jobs.c b/cgi-bin/jobs.c index d4d4ffd9e2..d6da74444a 100644 --- a/cgi-bin/jobs.c +++ b/cgi-bin/jobs.c @@ -138,7 +138,7 @@ do_job_op(http_t *http, /* I - HTTP connection */ * * attributes-charset * attributes-natural-language - * job-uri or printer-uri (purge-jobs) + * job-uri * requesting-user-name */ diff --git a/templates/class.tmpl b/templates/class.tmpl index 0afb0d39f0..630c342ec2 100644 --- a/templates/class.tmpl +++ b/templates/class.tmpl @@ -11,7 +11,7 @@ {printer_state=5?:} {printer_is_accepting_jobs=0?:} - + diff --git a/templates/da/class.tmpl b/templates/da/class.tmpl index dbbf8d54c2..49d3b8ee2d 100644 --- a/templates/da/class.tmpl +++ b/templates/da/class.tmpl @@ -11,7 +11,7 @@ {printer_state=5?:} {printer_is_accepting_jobs=0?:} - + diff --git a/templates/de/class.tmpl b/templates/de/class.tmpl index eecb47bb50..123c1b5325 100644 --- a/templates/de/class.tmpl +++ b/templates/de/class.tmpl @@ -11,7 +11,7 @@ {printer_state=5?:} {printer_is_accepting_jobs=0?:} - + diff --git a/templates/es/class.tmpl b/templates/es/class.tmpl index d89983cd2b..a294269066 100644 --- a/templates/es/class.tmpl +++ b/templates/es/class.tmpl @@ -11,7 +11,7 @@ {printer_state=5?:} {printer_is_accepting_jobs=0?:} - + diff --git a/templates/fr/class.tmpl b/templates/fr/class.tmpl index d48c05d6a6..c9d6475713 100644 --- a/templates/fr/class.tmpl +++ b/templates/fr/class.tmpl @@ -11,7 +11,7 @@ {printer_state=5?:} {printer_is_accepting_jobs=0?:} - + diff --git a/templates/ja/class.tmpl b/templates/ja/class.tmpl index a5becb6661..a89fcd37cb 100644 --- a/templates/ja/class.tmpl +++ b/templates/ja/class.tmpl @@ -11,7 +11,7 @@ {printer_state=5?:} {printer_is_accepting_jobs=0?:} - + diff --git a/templates/pt_BR/class.tmpl b/templates/pt_BR/class.tmpl index dc503776d0..2c045cc244 100644 --- a/templates/pt_BR/class.tmpl +++ b/templates/pt_BR/class.tmpl @@ -11,7 +11,7 @@ {printer_state=5?:} {printer_is_accepting_jobs=0?:} - + diff --git a/templates/ru/class.tmpl b/templates/ru/class.tmpl index a5aadff044..3ed47b2c14 100644 --- a/templates/ru/class.tmpl +++ b/templates/ru/class.tmpl @@ -11,7 +11,7 @@ {printer_state=5?:} {printer_is_accepting_jobs=0?:} - + -- 2.47.2