summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2017-11-17 11:37:30 +0100
committerJeremy Allison <jra@samba.org>2017-11-18 00:09:16 +0100
commite1f12acc13a3cc004518ac3460c6000ea0b95115 (patch)
treed6ac73bd0a8a1fbf6f4fd77368df1ecab233b44f /source3
parent7e83d1489406cd53d72097e40bf02295c88ea61e (diff)
downloadsamba-e1f12acc13a3cc004518ac3460c6000ea0b95115.tar.gz
winbind: Remove winbind_event_context
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>
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/torture.c9
-rw-r--r--source3/winbindd/winbindd.c19
-rw-r--r--source3/winbindd/winbindd_proto.h1
3 files changed, 0 insertions, 29 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 360adad5953..481154fc36f 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -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"
****************************************************************************/
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c
index 981888068c1..75f9dbb142e 100644
--- a/source3/winbindd/winbindd.c
+++ b/source3/winbindd/winbindd.c
@@ -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;
diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h
index 46e6530105a..ccf39e57508 100644
--- a/source3/winbindd/winbindd_proto.h
+++ b/source3/winbindd/winbindd_proto.h
@@ -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 */