From abc90d8f2e56e50496392f9bf05fed85628e07f1 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 9 Feb 2012 11:18:43 +1100 Subject: [PATCH] s4-cmdline: Remove unused popt_common_dont_ask() Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett --- source4/lib/cmdline/popt_common.h | 2 -- source4/lib/cmdline/popt_credentials.c | 8 -------- 2 files changed, 10 deletions(-) diff --git a/source4/lib/cmdline/popt_common.h b/source4/lib/cmdline/popt_common.h index 8aed4d04961..e177df678fe 100644 --- a/source4/lib/cmdline/popt_common.h +++ b/source4/lib/cmdline/popt_common.h @@ -40,6 +40,4 @@ extern struct poptOption popt_common_credentials4[]; extern struct cli_credentials *cmdline_credentials; extern struct loadparm_context *cmdline_lp_ctx; -void popt_common_dont_ask(void); - #endif /* _POPT_COMMON_H */ diff --git a/source4/lib/cmdline/popt_credentials.c b/source4/lib/cmdline/popt_credentials.c index 497d2a7228c..ea08f8b9518 100644 --- a/source4/lib/cmdline/popt_credentials.c +++ b/source4/lib/cmdline/popt_credentials.c @@ -42,14 +42,6 @@ static bool machine_account_pending; enum opt { OPT_SIMPLE_BIND_DN, OPT_PASSWORD, OPT_KERBEROS, OPT_SIGN, OPT_ENCRYPT, OPT_KRB5_CCACHE }; -/* - disable asking for a password -*/ -void popt_common_dont_ask(void) -{ - dont_ask = true; -} - static void popt_common_credentials_callback(poptContext con, enum poptCallbackReason reason, const struct poptOption *opt, -- 2.34.1