Remove current directory config autoload override.

This was a holder from before there was home directory based config.  The
user can use -C ./btcd.conf if that is the intended goal.
This commit is contained in:
Dave Collins 2013-08-19 14:48:46 -05:00
parent 6acd51f4b4
commit f7387f217a

View file

@ -179,11 +179,6 @@ func loadConfig() (*config, []string, error) {
DbDir: defaultDbDir,
}
// A config file in the current directory takes precedence.
if fileExists(defaultConfigFilename) {
cfg.ConfigFile = defaultConfigFilename
}
// Pre-parse the command line options to see if an alternative config
// file or the version flag was specified.
preCfg := cfg