Skip to content

Commit

Permalink
chore: some code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan committed Dec 19, 2024
1 parent 67ccc82 commit 4765ef4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
4 changes: 1 addition & 3 deletions modules/core/03-connection/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ import (
// Keeper defines the IBC connection keeper
type Keeper struct {
appmodule.Environment
// implements gRPC QueryServer interface
types.QueryServer

legacySubspace types.ParamSubspace
cdc codec.BinaryCodec
clientKeeper types.ClientKeeper
legacySubspace types.ParamSubspace
}

// NewKeeper creates a new IBC connection Keeper instance
Expand Down
2 changes: 0 additions & 2 deletions modules/core/04-channel/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ var _ porttypes.ICS4Wrapper = (*Keeper)(nil)
// Keeper defines the IBC channel keeper
type Keeper struct {
appmodule.Environment
// implements gRPC QueryServer interface
types.QueryServer

cdc codec.BinaryCodec
clientKeeper types.ClientKeeper
Expand Down
12 changes: 0 additions & 12 deletions modules/core/05-port/keeper/keeper.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
package keeper

import (
"context"
"strings"

"cosmossdk.io/log"

sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/cosmos/ibc-go/v9/modules/core/05-port/types"
"github.com/cosmos/ibc-go/v9/modules/core/exported"
)

// Keeper defines the IBC connection keeper
Expand All @@ -22,12 +16,6 @@ func NewKeeper() *Keeper {
return &Keeper{}
}

// Logger returns a module-specific logger.
func (Keeper) Logger(ctx context.Context) log.Logger {
sdkCtx := sdk.UnwrapSDKContext(ctx) // TODO: https://github.com/cosmos/ibc-go/issues/5917
return sdkCtx.Logger().With("module", "x/"+exported.ModuleName+"/"+types.SubModuleName)
}

// Route returns a IBCModule for a given module, and a boolean indicating
// whether or not the route is present.
func (k *Keeper) Route(module string) (types.IBCModule, bool) {
Expand Down

0 comments on commit 4765ef4

Please sign in to comment.