s3-printing: Removed unused function print_job_fd().
authorSimo Sorce <ssorce@redhat.com>
Fri, 7 May 2010 14:37:48 +0000 (10:37 -0400)
committerSimo Sorce <idra@samba.org>
Tue, 27 Jul 2010 14:27:14 +0000 (10:27 -0400)
Signed-off-by: Jim McDonough <jmcd@samba.org>
source3/include/printing.h
source3/printing/printing.c

index 8dff4ddb13fd99a79b06973b8293c83286bd0e25..eb277c991ad853a1af070be054ee155676470fcd 100644 (file)
@@ -120,7 +120,6 @@ void pjob_delete(const char* sharename, uint32 jobid);
 bool print_notify_register_pid(int snum);
 bool print_notify_deregister_pid(int snum);
 bool print_job_exists(const char* sharename, uint32 jobid);
-int print_job_fd(const char* sharename, uint32 jobid);
 char *print_job_fname(const char* sharename, uint32 jobid);
 struct spoolss_DeviceMode *print_job_devmode(const char* sharename, uint32 jobid);
 bool print_job_set_name(const char *sharename, uint32 jobid, const char *name);
index 3525f8dc3aad674d607c285a90dc472925c08144..b620db03d5623f2a9a9d256d156e5d45c6d78824 100644 (file)
@@ -1814,21 +1814,6 @@ bool print_job_exists(const char* sharename, uint32 jobid)
        return ret;
 }
 
-/****************************************************************************
- Give the fd used for a jobid.
-****************************************************************************/
-
-int print_job_fd(const char* sharename, uint32 jobid)
-{
-       struct printjob *pjob = print_job_find(sharename, jobid);
-       if (!pjob)
-               return -1;
-       /* don't allow another process to get this info - it is meaningless */
-       if (pjob->pid != sys_getpid())
-               return -1;
-       return pjob->fd;
-}
-
 /****************************************************************************
  Give the filename used for a jobid.
  Only valid for the process doing the spooling and when the job