diff --git a/exchanges/bitfinex/bitfinex_types.go b/exchanges/bitfinex/bitfinex_types.go index b4ca3f9ddfe..386ee95471b 100644 --- a/exchanges/bitfinex/bitfinex_types.go +++ b/exchanges/bitfinex/bitfinex_types.go @@ -13,7 +13,6 @@ import ( var ( errSetCannotBeEmpty = errors.New("set cannot be empty") - errSubNotFound = errors.New("could not find matching subscription") errTypeAssert = errors.New("type assertion failed") errUnknownError = errors.New("unknown error") errParamNotAllowed = errors.New("param not allowed") diff --git a/exchanges/bitfinex/bitfinex_websocket.go b/exchanges/bitfinex/bitfinex_websocket.go index 49e72e2a3d6..dc57d0b7d01 100644 --- a/exchanges/bitfinex/bitfinex_websocket.go +++ b/exchanges/bitfinex/bitfinex_websocket.go @@ -2144,24 +2144,3 @@ subSort: break } } - -func assetPairFromSymbol(symbol string) (asset.Item, currency.Pair, error) { - assetType := asset.Spot - - if symbol == "" { - return assetType, currency.EMPTYPAIR, nil - } - - switch symbol[0] { - case 'f': - assetType = asset.MarginFunding - case 't': - assetType = asset.Spot - default: - return assetType, currency.EMPTYPAIR, fmt.Errorf("unknown pair prefix: %v", symbol[0]) - } - - pair, err := currency.NewPairFromString(symbol[1:]) - - return assetType, pair, err -} diff --git a/exchanges/stream/websocket.go b/exchanges/stream/websocket.go index 3394c18368d..d12a33d9e7f 100644 --- a/exchanges/stream/websocket.go +++ b/exchanges/stream/websocket.go @@ -51,7 +51,6 @@ var ( errSubscriptionNotFound = errors.New("subscription not found in list") errAlreadySubscribed = errors.New("already subscribed") errNoChannelsInArgs = errors.New("no channels in args") - errKeyCannotBeNil = errors.New("key cannot be nil") ) var globalReporter Reporter