summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-02-09 11:13:29 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-02-10 16:45:12 +1100
commit7824fd59547adeb84c367d5459ae5f55a3161328 (patch)
tree5195833cfdd59b9cc13143fa6ef8b22f68607523 /source3
parent3b88c1e60596a88f09891df4696b6dd055bc6da8 (diff)
downloadsamba-7824fd59547adeb84c367d5459ae5f55a3161328.tar.gz
samba-7824fd59547adeb84c367d5459ae5f55a3161328.tar.bz2
samba-7824fd59547adeb84c367d5459ae5f55a3161328.zip
s3-registry: Remove unused prs_uint8()
Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
Diffstat (limited to 'source3')
-rw-r--r--source3/registry/reg_parse_prs.c22
-rw-r--r--source3/registry/reg_parse_prs.h1
2 files changed, 0 insertions, 23 deletions
diff --git a/source3/registry/reg_parse_prs.c b/source3/registry/reg_parse_prs.c
index 023fd0c400..14aa3fac01 100644
--- a/source3/registry/reg_parse_prs.c
+++ b/source3/registry/reg_parse_prs.c
@@ -330,28 +330,6 @@ void prs_switch_type(prs_struct *ps, bool 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.
********************************************************************/
diff --git a/source3/registry/reg_parse_prs.h b/source3/registry/reg_parse_prs.h
index 5b8aeabaa9..2994015272 100644
--- a/source3/registry/reg_parse_prs.h
+++ b/source3/registry/reg_parse_prs.h
@@ -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);