From d8ab3e52dc717cbfd82b02c00426e98001acc764 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 11 May 2010 10:49:46 +0200 Subject: s3-printing: Removed unused free_a_printer function. Signed-off-by: Jim McDonough --- source3/printing/nt_printing.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'source3/printing') diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c index 9270226195..3a3b72abbc 100644 --- a/source3/printing/nt_printing.c +++ b/source3/printing/nt_printing.c @@ -3297,32 +3297,6 @@ WERROR spoolss_map_to_os2_driver(TALLOC_CTX *mem_ctx, const char **pdrivername) return WERR_OK; } -/**************************************************************************** - Deletes a NT_PRINTER_INFO_LEVEL struct. -****************************************************************************/ - -uint32 free_a_printer(NT_PRINTER_INFO_LEVEL **pp_printer, uint32 level) -{ - NT_PRINTER_INFO_LEVEL *printer = *pp_printer; - - if ( !printer ) - return 0; - - switch (level) { - case 2: - TALLOC_FREE(printer->info_2); - break; - - default: - DEBUG(0,("free_a_printer: unknown level! [%d]\n", level )); - return 1; - } - - TALLOC_FREE(*pp_printer); - - return 0; -} - /**************************************************************************** ****************************************************************************/ -- cgit