summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-05-07 10:37:48 -0400
committerSimo Sorce <idra@samba.org>2010-07-27 10:27:14 -0400
commitf5a2f8fa2b66d23eb2e99443f6d6bb85b6199b63 (patch)
treeb9c1c354f602d4c5b6235bfa8c14d7acdeb8c02f
parent21cd59e7a5b319a8800c904d21f0d1e885acc7fb (diff)
downloadsamba-f5a2f8fa2b66d23eb2e99443f6d6bb85b6199b63.tar.gz
samba-f5a2f8fa2b66d23eb2e99443f6d6bb85b6199b63.tar.bz2
samba-f5a2f8fa2b66d23eb2e99443f6d6bb85b6199b63.zip
s3-printing: Removed unused function print_job_fd().
Signed-off-by: Jim McDonough <jmcd@samba.org>
-rw-r--r--source3/include/printing.h1
-rw-r--r--source3/printing/printing.c15
2 files changed, 0 insertions, 16 deletions
diff --git a/source3/include/printing.h b/source3/include/printing.h
index 8dff4ddb13..eb277c991a 100644
--- a/source3/include/printing.h
+++ b/source3/include/printing.h
@@ -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);
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 3525f8dc3a..b620db03d5 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -1815,21 +1815,6 @@ bool print_job_exists(const char* sharename, uint32 jobid)
}
/****************************************************************************
- 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
has not been spooled.