From 2f7e04c83cd03beabc3fdf2af5fa4ec2096d65d9 Mon Sep 17 00:00:00 2001 From: mpoke Date: Wed, 4 Sep 2024 11:15:46 +0200 Subject: [PATCH] remove GetAllLaunchedConsumerIds as not needed --- x/ccv/provider/keeper/keeper.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/x/ccv/provider/keeper/keeper.go b/x/ccv/provider/keeper/keeper.go index e45a4a9c4a..187d62ab00 100644 --- a/x/ccv/provider/keeper/keeper.go +++ b/x/ccv/provider/keeper/keeper.go @@ -742,18 +742,6 @@ func (k Keeper) GetAllActiveConsumerIds(ctx sdk.Context) []string { return consumerIds } -// GetAllLaunchedConsumerIds returns all the consumer ids of chains that are launched -func (k Keeper) GetAllLaunchedConsumerIds(ctx sdk.Context) []string { - consumerIds := []string{} - for _, consumerId := range k.GetAllConsumerIds(ctx) { - if phase := k.GetConsumerPhase(ctx, consumerId); phase != types.ConsumerPhase_CONSUMER_PHASE_LAUNCHED { - continue - } - consumerIds = append(consumerIds, consumerId) - } - return consumerIds -} - func (k Keeper) SetOptedIn( ctx sdk.Context, consumerId string,