From 3b635d526001ce468fd4b966d43b3e706e9dc309 Mon Sep 17 00:00:00 2001 From: nate smith Date: Thu, 10 Oct 2019 17:53:53 -0500 Subject: [PATCH] remove unused method --- github/config.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/github/config.go b/github/config.go index 9a5221e50..420f56c19 100644 --- a/github/config.go +++ b/github/config.go @@ -344,18 +344,6 @@ func (c *Config) DefaultHost() (host *Host, err error) { return } -func (c *Config) DefaultHostNoPrompt() (*Host, error) { - if GitHubHostEnv != "" { - return c.PromptForHost(GitHubHostEnv) - } else if len(c.Hosts) > 0 { - host := c.Hosts[0] - // HACK: forces host to inherit GITHUB_TOKEN if applicable - return c.PromptForHost(host.Host) - } else { - return c.PromptForHost(GitHubHost) - } -} - // CheckWriteable checks if config file is writeable. This should // be called before asking for credentials and only if current // operation needs to update the file. See issue #1314 for details.