From 1515f7db00ec3c01bc9c808edddf44052ac91c3f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 13 Dec 2011 15:24:24 +0100 Subject: s3:smbd: remove unused smbd_messaging_context() metze --- source3/smbd/globals.c | 10 ---------- source3/smbd/proto.h | 1 - 2 files changed, 11 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/globals.c b/source3/smbd/globals.c index 70ff22c6ca..3199a37c90 100644 --- a/source3/smbd/globals.c +++ b/source3/smbd/globals.c @@ -117,16 +117,6 @@ struct smbd_server_connection *msg_ctx_to_sconn(struct messaging_context *msg_ct return smbd_server_conn; } -struct messaging_context *smbd_messaging_context(void) -{ - struct messaging_context *msg_ctx = server_messaging_context(); - if (likely(msg_ctx != NULL)) { - return msg_ctx; - } - smb_panic("Could not init smbd's messaging context.\n"); - return NULL; -} - struct memcache *smbd_memcache(void) { if (!smbd_memcache_ctx) { diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 0cc6b66d63..64cf944320 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -957,7 +957,6 @@ void init_sec_ctx(void); /* The following definitions come from smbd/server.c */ -struct messaging_context *smbd_messaging_context(void); struct memcache *smbd_memcache(void); void delete_and_reload_printers(struct tevent_context *ev, struct messaging_context *msg_ctx); -- cgit