Remove unusable setting

Not a configuration item or command line option;
variable is always false.
This commit is contained in:
Ian Barwick
2015-11-26 10:20:54 +09:00
parent ce2d4fb86f
commit 85be96a0be

View File

@@ -110,9 +110,6 @@ static const char *keywords[6];
static const char *values[6];
static bool config_file_required = true;
/* XXX This should be mapped into a command line option */
bool require_password = false;
/* Initialization of runtime options */
t_runtime_options runtime_options = T_RUNTIME_OPTIONS_INITIALIZER;
t_configuration_options options = T_CONFIGURATION_OPTIONS_INITIALIZER;
@@ -3362,11 +3359,6 @@ write_primary_conninfo(char *line)
{
maxlen_snprintf(password_buf, " password=%s", password);
}
else if (require_password)
{
log_err(_("password required but none provided and PGPASSWORD not set\n"));
exit(ERR_BAD_PASSWORD);
}
if (runtime_options.host[0])
{