diff options
author | Andreas Schneider <asn@samba.org> | 2010-05-07 10:38:17 +0200 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2010-07-27 10:27:08 -0400 |
commit | 665eba334e96ee120f036e693c2a36167deaede2 (patch) | |
tree | dff7faa2cf962a9d86a5141ec2e4d70dc8896345 | |
parent | e2c9ad93cb914186b89e2055f1bed3cceee1f768 (diff) | |
download | samba-665eba334e96ee120f036e693c2a36167deaede2.tar.gz samba-665eba334e96ee120f036e693c2a36167deaede2.tar.bz2 samba-665eba334e96ee120f036e693c2a36167deaede2.zip |
s3-spoolss: Removed unused function convert_printer_info().
Signed-off-by: Jim McDonough <jmcd@samba.org>
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index 2f41430c0e..918a8027d9 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -1688,38 +1688,6 @@ static bool printer_info2_to_nt_printer_info2(struct spoolss_SetPrinterInfo2 *r, return true; } -/**************************************************************************** -****************************************************************************/ - -static bool convert_printer_info(struct spoolss_SetPrinterInfoCtr *info_ctr, - NT_PRINTER_INFO_LEVEL *printer) -{ - bool ret; - - switch (info_ctr->level) { - case 2: - /* allocate memory if needed. Messy because - convert_printer_info is used to update an existing - printer or build a new one */ - - if (!printer->info_2) { - printer->info_2 = TALLOC_ZERO_P(printer, NT_PRINTER_INFO_LEVEL_2); - if (!printer->info_2) { - DEBUG(0,("convert_printer_info: " - "talloc() failed!\n")); - return false; - } - } - - ret = printer_info2_to_nt_printer_info2(info_ctr->info.info2, - printer->info_2); - printer->info_2->setuptime = time(NULL); - return ret; - } - - return false; -} - /**************************************************************** _spoolss_ClosePrinter ****************************************************************/ |