summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-12-13 15:24:24 +0100
committerStefan Metzmacher <metze@samba.org>2011-12-14 08:15:30 +0100
commit1515f7db00ec3c01bc9c808edddf44052ac91c3f (patch)
tree371b51fda322836751dcdd6dd25b75c2fc6d54a2
parent78582da8b57120d0f1a86577d1f8df1d553769bc (diff)
downloadsamba-1515f7db00ec3c01bc9c808edddf44052ac91c3f.tar.gz
samba-1515f7db00ec3c01bc9c808edddf44052ac91c3f.tar.bz2
samba-1515f7db00ec3c01bc9c808edddf44052ac91c3f.zip
s3:smbd: remove unused smbd_messaging_context()
metze
-rw-r--r--source3/smbd/globals.c10
-rw-r--r--source3/smbd/proto.h1
2 files changed, 0 insertions, 11 deletions
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);