Skip to content

Commit

Permalink
remove GetAllLaunchedConsumerIds as not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoke committed Sep 4, 2024
1 parent 8457336 commit 2f7e04c
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions x/ccv/provider/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2f7e04c

Please sign in to comment.