Skip to content

Commit

Permalink
Remove useless interface compliance comments (ava-labs#1448)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrubabasu authored May 6, 2022
1 parent c448496 commit e6bb1b2
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 13 deletions.
1 change: 0 additions & 1 deletion api/admin/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/ava-labs/avalanchego/utils/rpc"
)

// Interface compliance
var _ Client = &client{}

// Client interface for the Avalanche Platform Info API Endpoint
Expand Down
1 change: 0 additions & 1 deletion api/health/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/ava-labs/avalanchego/utils/rpc"
)

// Interface compliance
var _ Client = &client{}

// Client interface for Avalanche Health API Endpoint
Expand Down
1 change: 0 additions & 1 deletion api/info/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/ava-labs/avalanchego/utils/rpc"
)

// Interface compliance
var _ Client = &client{}

// Client interface for an Info API Client
Expand Down
1 change: 0 additions & 1 deletion api/ipcs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/ava-labs/avalanchego/utils/rpc"
)

// Interface compliance
var _ Client = &client{}

// Client interface for interacting with the IPCS endpoint
Expand Down
1 change: 0 additions & 1 deletion api/keystore/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/ava-labs/avalanchego/utils/rpc"
)

// Interface compliance
var _ Client = &client{}

// Client interface for Avalanche Keystore API Endpoint
Expand Down
1 change: 0 additions & 1 deletion indexer/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/ava-labs/avalanchego/utils/rpc"
)

// Interface compliance
var _ Client = &client{}

// Client interface for Avalanche Indexer API Endpoint
Expand Down
1 change: 0 additions & 1 deletion utils/crypto/ed25519.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ var (
)

var (
// Interface compliance
_ Factory = &FactoryED25519{}
_ PublicKey = &PublicKeyED25519{}
_ PrivateKey = &PrivateKeyED25519{}
Expand Down
1 change: 0 additions & 1 deletion utils/crypto/rsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
var (
errWrongKeyType = errors.New("wrong key type")

// Interface compliance
_ Factory = &FactoryRSA{}
_ PublicKey = &PublicKeyRSA{}
_ PrivateKey = &PrivateKeyRSA{}
Expand Down
1 change: 0 additions & 1 deletion utils/crypto/rsapss.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
)

var (
// Interface compliance
_ Factory = &FactoryRSAPSS{}
_ PublicKey = &PublicKeyRSAPSS{}
_ PrivateKey = &PrivateKeyRSAPSS{}
Expand Down
1 change: 0 additions & 1 deletion utils/crypto/secp256k1r.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ const (
var (
errCompressed = errors.New("wasn't expecting a compressed key")

// Interface compliance
_ RecoverableFactory = &FactorySECP256K1R{}
_ PublicKey = &PublicKeySECP256K1R{}
_ PrivateKey = &PrivateKeySECP256K1R{}
Expand Down
1 change: 0 additions & 1 deletion vms/avm/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
cjson "github.com/ava-labs/avalanchego/utils/json"
)

// Interface compliance
var _ Client = &client{}

// Client for interacting with an AVM (X-Chain) instance
Expand Down
1 change: 0 additions & 1 deletion vms/avm/wallet_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"github.com/ava-labs/avalanchego/utils/rpc"
)

// Interface compliance
var _ WalletClient = &client{}

// interface of an AVM wallet client for interacting with avm managed wallet on [chain]
Expand Down
1 change: 0 additions & 1 deletion vms/platformvm/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"github.com/ava-labs/avalanchego/vms/platformvm/status"
)

// Interface compliance
var _ Client = &client{}

// Client interface for interacting with the P Chain endpoint
Expand Down

0 comments on commit e6bb1b2

Please sign in to comment.