summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-25 15:54:29 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-29 18:11:20 +0200
commitcac9981b1a88a37c703a76a951b0691fa4ba7b4b (patch)
tree9ed05aa8e472d20f67875883c95922fa07ae747a /source3/rpc_client
parent13cf592bb8478453dccd4d78bdb4dabec7aeddc2 (diff)
downloadsamba-cac9981b1a88a37c703a76a951b0691fa4ba7b4b.tar.gz
samba-cac9981b1a88a37c703a76a951b0691fa4ba7b4b.tar.bz2
samba-cac9981b1a88a37c703a76a951b0691fa4ba7b4b.zip
s3:rpc_client: remove more unused code
metze
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/rpc_transport_np.c12
-rw-r--r--source3/rpc_client/rpc_transport_smbd.c10
-rw-r--r--source3/rpc_client/rpc_transport_sock.c37
3 files changed, 0 insertions, 59 deletions
diff --git a/source3/rpc_client/rpc_transport_np.c b/source3/rpc_client/rpc_transport_np.c
index cf659da592..e00c1f30ba 100644
--- a/source3/rpc_client/rpc_transport_np.c
+++ b/source3/rpc_client/rpc_transport_np.c
@@ -513,15 +513,3 @@ struct cli_state *rpc_pipe_np_smb_conn(struct rpc_pipe_client *p)
}
return state->cli;
}
-
-void rpccli_close_np_fd(struct rpc_pipe_client *p)
-{
- struct cli_state *cli = rpc_pipe_np_smb_conn(p);
- if (cli) {
- if (cli->fd != -1) {
- close(cli->fd);
- cli->fd = -1;
- }
- }
- return;
-}
diff --git a/source3/rpc_client/rpc_transport_smbd.c b/source3/rpc_client/rpc_transport_smbd.c
index 690314c192..57fac68b30 100644
--- a/source3/rpc_client/rpc_transport_smbd.c
+++ b/source3/rpc_client/rpc_transport_smbd.c
@@ -765,13 +765,3 @@ NTSTATUS rpc_transport_smbd_init(TALLOC_CTX *mem_ctx,
TALLOC_FREE(frame);
return status;
}
-
-struct cli_state *rpc_pipe_smbd_smb_conn(struct rpc_pipe_client *p)
-{
- struct rpc_transport_smbd_state *state = talloc_get_type(p->transport->priv,
- struct rpc_transport_smbd_state);
- if (!state || !state->conn) {
- return NULL;
- }
- return state->conn->cli;
-}
diff --git a/source3/rpc_client/rpc_transport_sock.c b/source3/rpc_client/rpc_transport_sock.c
index 1c49412d20..b7bb7d70d5 100644
--- a/source3/rpc_client/rpc_transport_sock.c
+++ b/source3/rpc_client/rpc_transport_sock.c
@@ -265,40 +265,3 @@ NTSTATUS rpc_transport_sock_init(TALLOC_CTX *mem_ctx, int fd,
*presult = result;
return NT_STATUS_OK;
}
-
-int rpccli_set_sock_timeout(struct rpc_pipe_client *cli, int timeout)
-{
- struct rpc_transport_sock_state *state = talloc_get_type(cli->transport->priv,
- struct rpc_transport_sock_state);
- int orig_timeout;
- if (!state) {
- return 0;
- }
- orig_timeout = state->timeout;
- state->timeout = timeout;
- return orig_timeout;
-}
-
-void rpccli_close_sock_fd(struct rpc_pipe_client *cli)
-{
- struct rpc_transport_sock_state *state = talloc_get_type(cli->transport->priv,
- struct rpc_transport_sock_state);
- if (state) {
- if (state->fd != -1) {
- close(state->fd);
- state->fd = -1;
- }
- }
- return;
-}
-
-bool rpc_pipe_tcp_connection_ok(struct rpc_pipe_client *cli)
-{
- struct rpc_transport_sock_state *state = talloc_get_type(cli->transport->priv,
- struct rpc_transport_sock_state);
- if (state && state->fd != -1) {
- return true;
- }
-
- return false;
-}