diff --git a/context/config_file_test.go b/context/config_file_test.go index 92f042a10..239727cc8 100644 --- a/context/config_file_test.go +++ b/context/config_file_test.go @@ -54,7 +54,7 @@ hosts: `)() config, err := ParseConfig("filename") eq(t, err, nil) - _, err = config.configForHost("github.com") + _, err = config.Get("github.com", "user") eq(t, err, errors.New(`could not find config entry for "github.com"`)) } diff --git a/context/config_type.go b/context/config_type.go index 91741048c..4eb6e136e 100644 --- a/context/config_type.go +++ b/context/config_type.go @@ -16,8 +16,6 @@ type Config interface { Get(string, string) (string, error) Set(string, string, string) error Write() error - configForHost(string) (*HostConfig, error) - parseHosts(*yaml.Node) ([]*HostConfig, error) } type NotFoundError struct {