mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
spoolss: remove unused fill_job_info3()
This logic has been moved into the previous EnumJobs(level=3) caller. The info3 structure only contains two fields that are used, so it doesn't make sense to have a separate helper for it. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
5e7ab3d2f4
commit
d772b98283
@ -7149,27 +7149,6 @@ static WERROR fill_job_info2(TALLOC_CTX *mem_ctx,
|
|||||||
return WERR_OK;
|
return WERR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
fill_job_info3
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
static WERROR fill_job_info3(TALLOC_CTX *mem_ctx,
|
|
||||||
struct spoolss_JobInfo3 *r,
|
|
||||||
const print_queue_struct *queue,
|
|
||||||
const print_queue_struct *next_queue,
|
|
||||||
int position, int snum,
|
|
||||||
struct spoolss_PrinterInfo2 *pinfo2)
|
|
||||||
{
|
|
||||||
r->job_id = queue->sysjob;
|
|
||||||
r->next_job_id = 0;
|
|
||||||
if (next_queue) {
|
|
||||||
r->next_job_id = next_queue->sysjob;
|
|
||||||
}
|
|
||||||
r->reserved = 0;
|
|
||||||
|
|
||||||
return WERR_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
Enumjobs at level 1.
|
Enumjobs at level 1.
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user