diff options
author | Günther Deschner <gd@samba.org> | 2009-02-14 01:41:11 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-02-14 01:42:11 +0100 |
commit | bcdf345df98ed356d94588f4617280450ff6e890 (patch) | |
tree | 3d51e189670d5a49a024694aad538ebc10e33143 | |
parent | cd2af58af9f04ffaa59c482df8fdf5991cae4156 (diff) | |
download | samba-bcdf345df98ed356d94588f4617280450ff6e890.tar.gz samba-bcdf345df98ed356d94588f4617280450ff6e890.tar.bz2 samba-bcdf345df98ed356d94588f4617280450ff6e890.zip |
s3-spoolss: remove unused convert_printer_info.
Guenther
-rw-r--r-- | source3/rpc_server/srv_spoolss_nt.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c index a43d9dff64..249e324c44 100644 --- a/source3/rpc_server/srv_spoolss_nt.c +++ b/source3/rpc_server/srv_spoolss_nt.c @@ -1726,37 +1726,6 @@ WERROR _spoolss_OpenPrinterEx(pipes_struct *p, /**************************************************************************** ****************************************************************************/ -static bool convert_printer_info(const SPOOL_PRINTER_INFO_LEVEL *uni, - NT_PRINTER_INFO_LEVEL *printer, uint32 level) -{ - bool ret; - - switch (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 = uni_2_asc_printer_info_2(uni->info_2, printer->info_2); - printer->info_2->setuptime = time(NULL); - - return ret; - } - - return False; -} - -/**************************************************************************** -****************************************************************************/ - static bool printer_info2_to_nt_printer_info2(struct spoolss_SetPrinterInfo2 *r, NT_PRINTER_INFO_LEVEL_2 *d) { |