From f32597e5101f46ae0afe5b1790a261b3bf451b09 Mon Sep 17 00:00:00 2001 From: Marko Date: Wed, 28 Apr 2021 12:46:22 +0000 Subject: [PATCH] remove unused list (#9219) --- x/staking/keeper/keeper.go | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/x/staking/keeper/keeper.go b/x/staking/keeper/keeper.go index 81613d92bc..6335ff46a7 100644 --- a/x/staking/keeper/keeper.go +++ b/x/staking/keeper/keeper.go @@ -1,7 +1,6 @@ package keeper import ( - "container/list" "fmt" "github.com/tendermint/tendermint/libs/log" @@ -20,13 +19,12 @@ var _ types.DelegationSet = Keeper{} // keeper of the staking store type Keeper struct { - storeKey sdk.StoreKey - cdc codec.BinaryMarshaler - authKeeper types.AccountKeeper - bankKeeper types.BankKeeper - hooks types.StakingHooks - paramstore paramtypes.Subspace - validatorCacheList *list.List + storeKey sdk.StoreKey + cdc codec.BinaryMarshaler + authKeeper types.AccountKeeper + bankKeeper types.BankKeeper + hooks types.StakingHooks + paramstore paramtypes.Subspace } // NewKeeper creates a new staking Keeper instance @@ -49,13 +47,12 @@ func NewKeeper( } return Keeper{ - storeKey: key, - cdc: cdc, - authKeeper: ak, - bankKeeper: bk, - paramstore: ps, - hooks: nil, - validatorCacheList: list.New(), + storeKey: key, + cdc: cdc, + authKeeper: ak, + bankKeeper: bk, + paramstore: ps, + hooks: nil, } }