From fd1ac9afc53dcb741c65b2df047213b985c6d1c3 Mon Sep 17 00:00:00 2001 From: somebody Date: Thu, 1 Sep 2016 15:39:55 +0800 Subject: [PATCH] remove duplicated code with func setupBotExchanges --- main.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/main.go b/main.go index a6a567c7..39b8d608 100644 --- a/main.go +++ b/main.go @@ -129,22 +129,6 @@ func main() { log.Println("Fatal error retrieving config currency AvailablePairs. Error: ", err) } - for _, exch := range bot.config.Exchanges { - for i := 0; i < len(bot.exchanges); i++ { - if bot.exchanges[i] != nil { - if bot.exchanges[i].GetName() == exch.Name { - bot.exchanges[i].Setup(exch) - if bot.exchanges[i].IsEnabled() { - log.Printf("%s: Exchange support: %s (Authenticated API support: %s - Verbose mode: %s).\n", exch.Name, IsEnabled(exch.Enabled), IsEnabled(exch.AuthenticatedAPISupport), IsEnabled(exch.Verbose)) - bot.exchanges[i].Start() - } else { - log.Printf("%s: Exchange support: %s\n", exch.Name, IsEnabled(exch.Enabled)) - } - } - } - } - } - if bot.config.Webserver.Enabled { err := CheckWebserverValues() if err != nil {