From a4835b8704f9a98ee2cc048c030c38ea9eeb4a35 Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Mon, 30 Jan 2012 17:35:28 +0100 Subject: [PATCH] s3-printing: remove print_parse_jobid() With all callers fixed, it is now safe to remove. (cherry picked from commit bb3b4890c77bcf1c50f4f27f10e5f5812ae24a76) --- source3/include/printing.h | 1 - source3/printing/lpq_parse.c | 19 ------------------- 2 files changed, 20 deletions(-) diff --git a/source3/include/printing.h b/source3/include/printing.h index 793a581c889..f749358303b 100644 --- a/source3/include/printing.h +++ b/source3/include/printing.h @@ -246,7 +246,6 @@ void printing_end(void); bool parse_lpq_entry(enum printing_types printing_type,char *line, print_queue_struct *buf, print_status_struct *status,bool first); -uint32_t print_parse_jobid(const char *fname); /* The following definitions come from printing/printing_db.c */ diff --git a/source3/printing/lpq_parse.c b/source3/printing/lpq_parse.c index 2a14dfa2ec6..06790d89214 100644 --- a/source3/printing/lpq_parse.c +++ b/source3/printing/lpq_parse.c @@ -1152,22 +1152,3 @@ bool parse_lpq_entry(enum printing_types printing_type,char *line, return ret; } -/**************************************************************************** - Parse a file name from the system spooler to generate a jobid. -****************************************************************************/ - -uint32_t print_parse_jobid(const char *fname) -{ - int jobid; - const char *p = strstr_m(fname,PRINT_SPOOL_PREFIX); - - if (!p) { - return (uint32_t)-1; - } - p += strlen(PRINT_SPOOL_PREFIX); - jobid = atoi(p); - if (jobid <= 0) { - return (uint32_t)-1; - } - return (uint32_t)jobid; -} -- 2.11.4.GIT