s3-printing: remove unused print_job_fname()
[ddiss/samba.git] / source3 / printing / printing.c
index 8ce25610a5bcd6ccf8a42bea2902b2d9745fd582..9ac808ad3a3683d4edae97bbfe2028d6f2eb0934 100644 (file)
@@ -2073,22 +2073,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 != sys_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.
 ****************************************************************************/