s3:smbd: remove unused smbd_messaging_context()
authorStefan Metzmacher <metze@samba.org>
Tue, 13 Dec 2011 14:24:24 +0000 (15:24 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 14 Dec 2011 07:15:30 +0000 (08:15 +0100)
metze

source3/smbd/globals.c
source3/smbd/proto.h

index 70ff22c6ca50c98d4d99446cb4dfd8bf61e6125a..3199a37c905f9766315e32ce0dcfa06b48177b60 100644 (file)
@@ -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) {
index 0cc6b66d63178969e755230488665d9b9f67b9ef..64cf94432020594e92ca716698a89f5ee4a58a83 100644 (file)
@@ -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);