Skip to content

Commit d0baea3

Browse files
committed
Remove dead function
1 parent 9fbd515 commit d0baea3

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

dnscrypt-proxy/config_loader.go

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,6 @@ import (
1616
netproxy "golang.org/x/net/proxy"
1717
)
1818

19-
// loadAndParseConfig - Loads the configuration file and parses it
20-
func loadAndParseConfig(proxy *Proxy, configFile string) (Config, error) {
21-
foundConfigFile, err := findConfigFile(&configFile)
22-
if err != nil {
23-
return Config{}, fmt.Errorf(
24-
"Unable to load the configuration file [%s] -- Maybe use the -config command-line switch?",
25-
configFile,
26-
)
27-
}
28-
WarnIfMaybeWritableByOtherUsers(foundConfigFile)
29-
config := newConfig()
30-
31-
if err := cdFileDir(foundConfigFile); err != nil {
32-
return config, err
33-
}
34-
35-
return config, nil
36-
}
37-
3819
// configureLogging - Configure logging based on the configuration
3920
func configureLogging(proxy *Proxy, flags *ConfigFlags, config *Config) {
4021
if config.LogLevel >= 0 && config.LogLevel < int(dlog.SeverityLast) {

0 commit comments

Comments
 (0)