s3-printing: remove unused print_job_fname()
[ddiss/samba.git] / source3 / printing / printing.c
index 69281846dfa09ed918d6e76a96970c1351ecaf98..4d0178f1852ac9540a6584fba81aa438f22ea2fa 100644 (file)
@@ -1969,22 +1969,7 @@ bool print_job_exists(const char* sharename, uint32 jobid)
 }
 
 /****************************************************************************
- Give the filename used for a jobid.
- Only valid for the process doing the spooling and when the job
- has not been spooled.
-****************************************************************************/
-
-char *print_job_fname(const char* sharename, uint32 jobid)
-{
-       struct printjob *pjob = print_job_find(NULL, sharename, jobid);
-       if (!pjob || pjob->spooled || pjob->pid != getpid())
-               return NULL;
-       return pjob->filename;
-}
-
-
-/****************************************************************************
- Give the filename used for a jobid.
+ Return the device mode asigned to a specific print job.
  Only valid for the process doing the spooling and when the job
  has not been spooled.
 ****************************************************************************/