winbind: Remove winbind_event_context
authorVolker Lendecke <vl@samba.org>
Fri, 17 Nov 2017 10:37:30 +0000 (11:37 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 17 Nov 2017 23:09:16 +0000 (00:09 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13150

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/torture/torture.c
source3/winbindd/winbindd.c
source3/winbindd/winbindd_proto.h

index 360adad5953297d25be01d1b37d4ebdefd384b3f..481154fc36f89d9ac543e493987a442f9edede40 100644 (file)
@@ -11588,15 +11588,6 @@ static struct {
        { "qpathinfo-bufsize", run_qpathinfo_bufsize, 0 },
        {NULL, NULL, 0}};
 
-/*
- * dummy function to satisfy linker dependency
- */
-struct tevent_context *winbind_event_context(void);
-struct tevent_context *winbind_event_context(void)
-{
-       return NULL;
-}
-
 /****************************************************************************
 run a specified test or "ALL"
 ****************************************************************************/
index 981888068c10715ea7bbe9355a1d0b1c887cc113..75f9dbb142e32033d14af546292c549c22ccbfb8 100644 (file)
@@ -60,25 +60,6 @@ static bool interactive = False;
 
 extern bool override_logfile;
 
-struct tevent_context *winbind_event_context(void)
-{
-       static struct tevent_context *ev = NULL;
-
-       if (ev != NULL) {
-               return ev;
-       }
-
-       /*
-        * Note we MUST use the NULL context here, not the autofree context,
-        * to avoid side effects in forked children exiting.
-        */
-       ev = samba_tevent_context_init(NULL);
-       if (ev == NULL) {
-               smb_panic("Could not init winbindd's messaging context.\n");
-       }
-       return ev;
-}
-
 struct messaging_context *winbind_messaging_context(void)
 {
        static struct messaging_context *msg = NULL;
index 46e6530105aed50f78390c2e7c50ca3832180d58..ccf39e575087f08fbbee6386010926f47324539c 100644 (file)
@@ -34,7 +34,6 @@ bool winbindd_setup_sig_hup_handler(const char *lfile);
 bool winbindd_use_idmap_cache(void);
 bool winbindd_use_cache(void);
 char *get_winbind_priv_pipe_dir(void);
-struct tevent_context *winbind_event_context(void);
 
 /* The following definitions come from winbindd/winbindd_ads.c  */