s3-printing: remove print_parse_jobid()
[ddiss/samba.git] / source3 / printing / lpq_parse.c
index ae5f75ea5f50be89ce41334280ea745786d4efd9..21e7b37faf0e337164ea19b8c872fe9ecaeef585 100644 (file)
@@ -1153,22 +1153,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;
-}