Skip to content

Commit

Permalink
fix: remove unused placeholder vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Mar 2, 2025
1 parent 88bcca5 commit 4ad6733
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package cli

import (
"strconv"
<%= for (goImport) in mergeGoImports(fields) { %>
<%= goImport.Alias %> "<%= goImport.Name %>"<% } %>
"github.com/spf13/cobra"
Expand All @@ -15,8 +14,6 @@ import (
"<%= ModulePath %>/x/<%= moduleName %>/types"
)

var _ = strconv.Itoa(0)

// CmdSend<%= packetName.UpperCamel %>() returns the <%= packetName.UpperCamel %> send packet command.
// This command does not use AutoCLI because it gives a better UX to do not.
func CmdSend<%= packetName.UpperCamel %>() *cobra.Command {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
package <%= moduleName %>

import (
"math/rand"

"cosmossdk.io/core/address"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
simtypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"

"<%= modulePath %>/testutil/sample"
"<%= modulePath %>/x/<%= moduleName %>/types"
)

// avoid unused import issue
var (
_ = rand.Rand{}
_ = sample.AccAddress
_ = sdk.AccAddress{}
_ = simulation.MsgEntryKind
)

const (
// this line is used by starport scaffolding # simapp/module/const
)

// GenerateGenesisState creates a randomized GenState of the module.
func (AppModule) GenerateGenesisState(simState *module.SimulationState) {
accs := make([]string, len(simState.Accounts))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package simulation

import (
"math/rand"
"strconv"

"github.com/cosmos/cosmos-sdk/baseapp"
sdk "github.com/cosmos/cosmos-sdk/types"
Expand All @@ -14,9 +13,6 @@ import (
"<%= ModulePath %>/x/<%= ModuleName %>/types"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func SimulateMsgCreate<%= TypeName.UpperCamel %>(
ak types.AuthKeeper,
bk types.BankKeeper,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package keeper_test

import (
"strconv"
"testing"

"github.com/cosmos/cosmos-sdk/types/query"
Expand All @@ -14,14 +13,10 @@ import (
"<%= ModulePath %>/x/<%= ModuleName %>/keeper"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func createN<%= TypeName.UpperCamel %>(keeper keeper.Keeper, ctx context.Context, n int) []types.<%= TypeName.UpperCamel %> {
items := make([]types.<%= TypeName.UpperCamel %>, n)
for i := range items {
items[i].<%= Index.Name.UpperCamel %> = <%= Index.ValueLoop() %>

_ = keeper.<%= TypeName.UpperCamel %>.Set(ctx, items[i].<%= Index.Name.UpperCamel %>, items[i])
}
return items
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package keeper_test

import (
"strconv"
"testing"

sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
Expand All @@ -11,9 +10,6 @@ import (
"<%= ModulePath %>/x/<%= ModuleName %>/types"
)

// Prevent strconv unused error
var _ = strconv.IntSize

func Test<%= TypeName.UpperCamel %>MsgServerCreate(t *testing.T) {
f := initFixture(t)
srv := keeper.NewMsgServerImpl(f.keeper)
Expand Down

0 comments on commit 4ad6733

Please sign in to comment.