From 5402aa8c21ee85db2ea669dc77e031404ad47749 Mon Sep 17 00:00:00 2001 From: Collin Brittain Date: Wed, 9 Aug 2023 15:07:30 -0500 Subject: [PATCH] Remove GetUnbondingValidators keeper method --- module/x/gravity/keeper/keeper.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/module/x/gravity/keeper/keeper.go b/module/x/gravity/keeper/keeper.go index e44267f91..4a71cc4ce 100644 --- a/module/x/gravity/keeper/keeper.go +++ b/module/x/gravity/keeper/keeper.go @@ -15,7 +15,6 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" "github.com/cosmos/cosmos-sdk/types/query" paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" - stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" "github.com/ethereum/go-ethereum/common" tmbytes "github.com/tendermint/tendermint/libs/bytes" "github.com/tendermint/tendermint/libs/log" @@ -468,14 +467,6 @@ func (k Keeper) getDelegateKeys(ctx sdk.Context) (out []*types.MsgDelegateKeys) return out } -// GetUnbondingvalidators returns UnbondingValidators. -// Adding here in gravity keeper as cdc is available inside endblocker. -func (k Keeper) GetUnbondingValidators(unbondingVals []byte) stakingtypes.ValAddresses { - unbondingValidators := stakingtypes.ValAddresses{} - k.cdc.MustUnmarshal(unbondingVals, &unbondingValidators) - return unbondingValidators -} - // This gets the timeout height in Ethereum blocks for expiring old batches and contract calls. func (k Keeper) getTimeoutHeight(ctx sdk.Context) uint64 { params := k.GetParams(ctx)