summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/globals.c13
-rw-r--r--source3/smbd/globals.h2
2 files changed, 0 insertions, 15 deletions
diff --git a/source3/smbd/globals.c b/source3/smbd/globals.c
index 3199a37c90..ff8c51bbdf 100644
--- a/source3/smbd/globals.c
+++ b/source3/smbd/globals.c
@@ -104,19 +104,6 @@ bool exit_firsttime = true;
struct smbd_server_connection *smbd_server_conn = NULL;
-struct smbd_server_connection *msg_ctx_to_sconn(struct messaging_context *msg_ctx)
-{
- struct server_id my_id, msg_id;
-
- my_id = messaging_server_id(smbd_server_conn->msg_ctx);
- msg_id = messaging_server_id(msg_ctx);
-
- if (!procid_equal(&my_id, &msg_id)) {
- return NULL;
- }
- return smbd_server_conn;
-}
-
struct memcache *smbd_memcache(void)
{
if (!smbd_memcache_ctx) {
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h
index d5b2de76eb..3c6aa12f1b 100644
--- a/source3/smbd/globals.h
+++ b/source3/smbd/globals.h
@@ -614,6 +614,4 @@ struct smbd_server_connection {
extern struct smbd_server_connection *smbd_server_conn;
-struct smbd_server_connection *msg_ctx_to_sconn(struct messaging_context *msg_ctx);
-
void smbd_init_globals(void);