mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
Remove dead function.
This commit is contained in:
parent
812ce0368c
commit
6ed4d80baa
@ -115,25 +115,6 @@ BOOL prs_init(prs_struct *ps, uint32 size, TALLOC_CTX *ctx, BOOL io)
|
||||
return True;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
read from a socket into memory.
|
||||
********************************************************************/
|
||||
BOOL prs_read(prs_struct *ps, int fd, size_t len, int timeout)
|
||||
{
|
||||
BOOL ok;
|
||||
size_t prev_size = ps->buffer_size;
|
||||
if (!prs_grow(ps, len))
|
||||
return False;
|
||||
|
||||
if (timeout > 0) {
|
||||
ok = (read_with_timeout(fd, &ps->data_p[prev_size],
|
||||
len, len,timeout) == len);
|
||||
} else {
|
||||
ok = (read_data(fd, &ps->data_p[prev_size], len) == len);
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
Delete the memory in a parse structure - if we own it.
|
||||
********************************************************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user