s3-registry: Remove unused prs_uint8()
authorAndrew Bartlett <abartlet@samba.org>
Thu, 9 Feb 2012 00:13:29 +0000 (11:13 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 10 Feb 2012 05:45:12 +0000 (16:45 +1100)
Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html

Andrew Bartlett

source3/registry/reg_parse_prs.c
source3/registry/reg_parse_prs.h

index 023fd0c400d6413d139dc4b13cb3bdb8b6ed2986..14aa3fac0181653e939732de513f721fa65f9d7a 100644 (file)
@@ -329,28 +329,6 @@ void prs_switch_type(prs_struct *ps, bool io)
                ps->io=io;
 }
 
-/*******************************************************************
- Stream a uint8.
- ********************************************************************/
-
-bool prs_uint8(const char *name, prs_struct *ps, int depth, uint8 *data8)
-{
-       char *q = prs_mem_get(ps, 1);
-       if (q == NULL)
-               return False;
-
-       if (UNMARSHALLING(ps))
-               *data8 = CVAL(q,0);
-       else
-               SCVAL(q,0,*data8);
-
-       DEBUGADD(5,("%s%04x %s: %02x\n", tab_depth(5,depth), ps->data_offset, name, *data8));
-
-       ps->data_offset += 1;
-
-       return True;
-}
-
 /*******************************************************************
  Stream a uint16.
  ********************************************************************/
index 5b8aeabaa9a1166cd18db9c88ac12a0b6161b87b..29940152729151f3b9ae8a6dddc26b1a60bd24ab 100644 (file)
@@ -72,7 +72,6 @@ bool prs_align(prs_struct *ps);
 bool prs_align_uint64(prs_struct *ps);
 char *prs_mem_get(prs_struct *ps, uint32 extra_size);
 void prs_switch_type(prs_struct *ps, bool io);
-bool prs_uint8(const char *name, prs_struct *ps, int depth, uint8 *data8);
 bool prs_uint16(const char *name, prs_struct *ps, int depth, uint16 *data16);
 bool prs_uint32(const char *name, prs_struct *ps, int depth, uint32 *data32);
 bool prs_uint64(const char *name, prs_struct *ps, int depth, uint64 *data64);