Skip to content

Commit

Permalink
Bitfinex: Remove unused errs and types
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Oct 1, 2023
1 parent 183c0bf commit fbca4fc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
1 change: 0 additions & 1 deletion exchanges/bitfinex/bitfinex_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
21 changes: 0 additions & 21 deletions exchanges/bitfinex/bitfinex_websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
1 change: 0 additions & 1 deletion exchanges/stream/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbca4fc

Please sign in to comment.