From: David Disseldorp Date: Wed, 8 Feb 2012 16:03:06 +0000 (+0100) Subject: s3-printing: remove unused print_job_fname() X-Git-Url: http://git.samba.org/?p=ddiss%2Fsamba.git;a=commitdiff_plain;h=69a91f398abce5160786eb211559f77da9220b76 s3-printing: remove unused print_job_fname() --- diff --git a/source3/include/printing.h b/source3/include/printing.h index 86244fbd1aa..222da8c4781 100644 --- a/source3/include/printing.h +++ b/source3/include/printing.h @@ -194,7 +194,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); diff --git a/source3/printing/printing.c b/source3/printing/printing.c index 69281846dfa..4d0178f1852 100644 --- a/source3/printing/printing.c +++ b/source3/printing/printing.c @@ -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. ****************************************************************************/