s3-spoolss: remove unused get_printer_dataex().
authorGünther Deschner <gd@samba.org>
Mon, 16 Mar 2009 23:28:26 +0000 (00:28 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 17 Mar 2009 11:21:23 +0000 (12:21 +0100)
Guenther

source3/rpc_server/srv_spoolss_nt.c

index 84064a308f4c607c0d028b4bd4ad61a973cccbb9..d457180626575bceba4fbcafcf1d8bb283e1cf3e 100644 (file)
@@ -2394,52 +2394,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
  ***************************************************************************/