s3-printing: remove unused print_job_fname()
authorDavid Disseldorp <ddiss@samba.org>
Wed, 8 Feb 2012 16:03:06 +0000 (17:03 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Mon, 25 Jun 2012 13:26:11 +0000 (15:26 +0200)
source3/include/printing.h
source3/printing/printing.c

index a49d6a507f9a3540ca4a148c7667f17c391b811a..149e84c3ba4e9d9938efc704fd96f3eb94379144 100644 (file)
@@ -195,7 +195,6 @@ uint32 sysjob_to_jobid(int unix_jobid);
 bool print_notify_register_pid(int snum);
 bool print_notify_deregister_pid(int snum);
 bool print_job_exists(const char* sharename, uint32 jobid);
-char *print_job_fname(const char* sharename, uint32 jobid);
 struct spoolss_DeviceMode *print_job_devmode(TALLOC_CTX *mem_ctx,
                                             const char *sharename,
                                             uint32 jobid);
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.
 ****************************************************************************/