From 653364f5a38fb6ec7c6ede38b62b2b15200b9f77 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 7 May 2010 10:38:54 +0200 Subject: [PATCH] s3-spoolss: Removed unused function printer_info2_to_nt_printer_info2(). Signed-off-by: Jim McDonough --- source3/rpc_server/srv_spoolss_nt.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 918a8027d9c..80e7c2e9505 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -1653,41 +1653,6 @@ WERROR _spoolss_OpenPrinterEx(pipes_struct *p, return WERR_OK; } -/**************************************************************************** -****************************************************************************/ - -static bool printer_info2_to_nt_printer_info2(struct spoolss_SetPrinterInfo2 *r, - NT_PRINTER_INFO_LEVEL_2 *d) -{ - DEBUG(7,("printer_info2_to_nt_printer_info2\n")); - - if (!r || !d) { - return false; - } - - d->attributes = r->attributes; - d->priority = r->priority; - d->default_priority = r->defaultpriority; - d->starttime = r->starttime; - d->untiltime = r->untiltime; - d->status = r->status; - d->cjobs = r->cjobs; - - fstrcpy(d->servername, r->servername); - fstrcpy(d->printername, r->printername); - fstrcpy(d->sharename, r->sharename); - fstrcpy(d->portname, r->portname); - fstrcpy(d->drivername, r->drivername); - slprintf(d->comment, sizeof(d->comment)-1, "%s", r->comment); - fstrcpy(d->location, r->location); - fstrcpy(d->sepfile, r->sepfile); - fstrcpy(d->printprocessor, r->printprocessor); - fstrcpy(d->datatype, r->datatype); - fstrcpy(d->parameters, r->parameters); - - return true; -} - /**************************************************************** _spoolss_ClosePrinter ****************************************************************/ -- 2.11.4.GIT