summaryrefslogtreecommitdiff
path: root/scheduler/job.c
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2021-04-12 16:37:28 -0400
committerMichael R Sweet <michael.r.sweet@gmail.com>2021-04-12 16:37:28 -0400
commit811e6226bb9140c2d3eb0732af3ba1176143c77a (patch)
tree389d712a98c35aa7a8b00d20dc21341f0aa30d76 /scheduler/job.c
parentaebc6d3086e1bc0858f95f42dcceb3701d925a5d (diff)
downloadcups-811e6226bb9140c2d3eb0732af3ba1176143c77a.tar.gz
Eliminate unused variables.
Diffstat (limited to 'scheduler/job.c')
-rw-r--r--scheduler/job.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/scheduler/job.c b/scheduler/job.c
index a1af0603f..cafdf5a46 100644
--- a/scheduler/job.c
+++ b/scheduler/job.c
@@ -2179,11 +2179,8 @@ cupsdSaveAllJobs(void)
{
int i; /* Looping var */
cups_file_t *fp; /* job.cache file */
- char filename[1024], /* job.cache filename */
- temp[1024]; /* Temporary string */
+ char filename[1024]; /* job.cache filename */
cupsd_job_t *job; /* Current job */
- time_t curtime; /* Current time */
- struct tm curdate; /* Current date */
snprintf(filename, sizeof(filename), "%s/job.cache", CacheDir);
@@ -2196,10 +2193,6 @@ cupsdSaveAllJobs(void)
* Write a small header to the file...
*/
- time(&curtime);
- localtime_r(&curtime, &curdate);
- strftime(temp, sizeof(temp) - 1, "%Y-%m-%d %H:%M", &curdate);
-
cupsFilePuts(fp, "# Job cache file for " CUPS_SVERSION "\n");
cupsFilePrintf(fp, "# Written by cupsd\n");
cupsFilePrintf(fp, "NextJobId %d\n", NextJobId);