summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-03-17 00:28:26 +0100
committerGünther Deschner <gd@samba.org>2009-03-17 12:21:23 +0100
commit4a58f263b9fcd24be480dadf1b464e6bc1df4590 (patch)
treefa69c0cc8218fc99cc3c709d274d5b061348effb
parent2d10548ab16d6fa3057b4649e0ae6b9f6a52bd83 (diff)
downloadsamba-4a58f263b9fcd24be480dadf1b464e6bc1df4590.tar.gz
samba-4a58f263b9fcd24be480dadf1b464e6bc1df4590.tar.bz2
samba-4a58f263b9fcd24be480dadf1b464e6bc1df4590.zip
s3-spoolss: remove unused get_printer_dataex().
Guenther
-rw-r--r--source3/rpc_server/srv_spoolss_nt.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/source3/rpc_server/srv_spoolss_nt.c b/source3/rpc_server/srv_spoolss_nt.c
index 84064a308f..d457180626 100644
--- a/source3/rpc_server/srv_spoolss_nt.c
+++ b/source3/rpc_server/srv_spoolss_nt.c
@@ -2395,52 +2395,6 @@ done:
/****************************************************************************
- Internal routine for retreiving printerdata
- ***************************************************************************/
-
-static WERROR get_printer_dataex( TALLOC_CTX *ctx, NT_PRINTER_INFO_LEVEL *printer,
- const char *key, const char *value, uint32 *type, uint8 **data,
- uint32 *needed, uint32 in_size )
-{
- REGISTRY_VALUE *val;
- uint32 size;
- int data_len;
-
- if ( !(val = get_printer_data( printer->info_2, key, value)) )
- return WERR_BADFILE;
-
- *type = regval_type( val );
-
- DEBUG(5,("get_printer_dataex: allocating %d\n", in_size));
-
- size = regval_size( val );
-
- /* copy the min(in_size, len) */
-
- if ( in_size ) {
- data_len = (size > in_size) ? in_size : size*sizeof(uint8);
-
- /* special case for 0 length values */
- if ( data_len ) {
- if ( (*data = (uint8 *)TALLOC_MEMDUP(ctx, regval_data_p(val), data_len)) == NULL )
- return WERR_NOMEM;
- }
- else {
- if ( (*data = (uint8 *)TALLOC_ZERO(ctx, in_size)) == NULL )
- return WERR_NOMEM;
- }
- }
- else
- *data = NULL;
-
- *needed = size;
-
- DEBUG(5,("get_printer_dataex: copy done\n"));
-
- return WERR_OK;
-}
-
-/****************************************************************************
Internal routine for removing printerdata
***************************************************************************/