r11632: removed 2 unused functions
authorAndrew Tridgell <tridge@samba.org>
Thu, 10 Nov 2005 05:26:53 +0000 (05:26 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:46:02 +0000 (13:46 -0500)
(This used to be commit fa904afed93a350dd0dcd3cddc1521a4a1ad6711)

source4/libcli/raw/clisocket.c

index 8b8a0b0fafda559cd7955a0562c40c7cf722024c..be25b360072b1e8fcd0f388650ec13ce7de01682 100644 (file)
@@ -193,39 +193,6 @@ void smbcli_sock_set_options(struct smbcli_socket *sock, const char *options)
        socket_set_option(sock->sock, options, NULL);
 }
 
-/****************************************************************************
- Write to socket. Return amount written.
-****************************************************************************/
-NTSTATUS smbcli_sock_write(struct smbcli_socket *sock, const uint8_t *data, 
-                          size_t len, size_t *nsent)
-{
-       DATA_BLOB blob;
-
-       if (sock->sock == NULL) {
-               return NT_STATUS_CONNECTION_DISCONNECTED;
-       }
-
-       blob.data = discard_const(data);
-       blob.length = len;
-
-       return socket_send(sock->sock, &blob, nsent, 0);
-}
-
-
-/****************************************************************************
- Read from socket. return amount read
-****************************************************************************/
-NTSTATUS smbcli_sock_read(struct smbcli_socket *sock, uint8_t *data, 
-                         size_t len, size_t *nread)
-{
-       if (sock->sock == NULL) {
-               return NT_STATUS_CONNECTION_DISCONNECTED;
-       }
-
-       return socket_recv(sock->sock, data, len, nread, 0);
-}
-
-
 /****************************************************************************
 resolve a hostname and connect 
 ****************************************************************************/