From 966cef0d41d85d2753d3664a0e555bb444cef2e3 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 5 Apr 2016 10:14:11 +0200 Subject: [PATCH] ctdbd_conn: Remove unused ctdbd_messaging_connection Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- source3/include/ctdbd_conn.h | 4 ---- source3/lib/ctdbd_conn.c | 30 ------------------------------ 2 files changed, 34 deletions(-) diff --git a/source3/include/ctdbd_conn.h b/source3/include/ctdbd_conn.h index a4eab74fe73..bcaa0947603 100644 --- a/source3/include/ctdbd_conn.h +++ b/source3/include/ctdbd_conn.h @@ -30,10 +30,6 @@ int ctdbd_init_connection(TALLOC_CTX *mem_ctx, const char *sockname, int timeout, struct ctdbd_connection **pconn); -int ctdbd_messaging_connection(TALLOC_CTX *mem_ctx, - const char *sockname, int timeout, - struct ctdbd_connection **pconn); - uint32_t ctdbd_vnn(const struct ctdbd_connection *conn); int ctdbd_register_msg_ctx(struct ctdbd_connection *conn, diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c index 27518504524..9cceeb15d80 100644 --- a/source3/lib/ctdbd_conn.c +++ b/source3/lib/ctdbd_conn.c @@ -484,36 +484,6 @@ int ctdbd_init_connection(TALLOC_CTX *mem_ctx, return ret; } -/* - * Get us a ctdbd connection and register us as a process - */ - -int ctdbd_messaging_connection(TALLOC_CTX *mem_ctx, - const char *sockname, int timeout, - struct ctdbd_connection **pconn) -{ - struct ctdbd_connection *conn; - int ret; - - ret = ctdbd_init_connection(mem_ctx, sockname, timeout, &conn); - - if (ret != 0) { - return ret; - } - - ret = register_with_ctdbd(conn, MSG_SRVID_SAMBA, NULL, NULL); - if (ret != 0) { - goto fail; - } - - *pconn = conn; - return 0; - - fail: - TALLOC_FREE(conn); - return ret; -} - struct messaging_context *ctdb_conn_msg_ctx(struct ctdbd_connection *conn) { return conn->msg_ctx;