s3-printing: remove print_parse_jobid()
authorDavid Disseldorp <ddiss@samba.org>
Mon, 30 Jan 2012 16:35:28 +0000 (17:35 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Mon, 25 Jun 2012 11:07:55 +0000 (13:07 +0200)
With all callers fixed, it is now safe to remove.

source3/include/printing.h
source3/printing/lpq_parse.c

index 793a581c8897d00f908b79f8f3f43c8af0645c07..f749358303b329be847220a9fe5495daed234bb8 100644 (file)
@@ -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  */
 
index 2a14dfa2ec6d352ea96065c8cd83f1d18e6f3961..06790d8921457c8c865ad21a4789a45fb8a47920 100644 (file)
@@ -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;
-}