s4-cmdline: Remove unused popt_common_dont_ask()
authorAndrew Bartlett <abartlet@samba.org>
Thu, 9 Feb 2012 00:18:43 +0000 (11:18 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 10 Feb 2012 05:45:12 +0000 (16:45 +1100)
Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html

Andrew Bartlett

source4/lib/cmdline/popt_common.h
source4/lib/cmdline/popt_credentials.c

index 8aed4d0496151cddb0710b9fca5ad602c1d3539b..e177df678fea3c441988a415e4917cdcc0d82ba3 100644 (file)
@@ -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 */
index 497d2a7228c962edd8c46e8ed0a8b9922c582d1c..ea08f8b95180ad9bd18655485109e4dc0c02823c 100644 (file)
@@ -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,