Skip to content

Commit

Permalink
chore: remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamu committed Sep 29, 2023
1 parent 516d88a commit 1306d88
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ import (

"github.com/desmos-labs/desmos/v6/app/upgrades"

"cosmossdk.io/client/v2/autocli"
"cosmossdk.io/core/appmodule"
storetypes "cosmossdk.io/store/types"
"github.com/cosmos/cosmos-sdk/runtime"
runtimeservices "github.com/cosmos/cosmos-sdk/runtime/services"
"github.com/cosmos/cosmos-sdk/server"

postskeeper "github.com/desmos-labs/desmos/v6/x/posts/keeper"
Expand Down Expand Up @@ -85,7 +82,6 @@ import (

evidencekeeper "cosmossdk.io/x/evidence/keeper"
upgradekeeper "cosmossdk.io/x/upgrade/keeper"
authcodec "github.com/cosmos/cosmos-sdk/x/auth/codec"
authkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper"
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
crisiskeeper "github.com/cosmos/cosmos-sdk/x/crisis/keeper"
Expand Down Expand Up @@ -634,27 +630,6 @@ func (app *DesmosApp) TxConfig() client.TxConfig {
return app.txConfig
}

// AutoCliOpts returns the autocli options for the app.
func (app *DesmosApp) AutoCliOpts() autocli.AppOptions {
modules := make(map[string]appmodule.AppModule, 0)
for _, m := range app.ModuleManager.Modules {
if moduleWithName, ok := m.(module.HasName); ok {
moduleName := moduleWithName.Name()
if appModule, ok := moduleWithName.(appmodule.AppModule); ok {
modules[moduleName] = appModule
}
}
}

return autocli.AppOptions{
Modules: modules,
ModuleOptions: runtimeservices.ExtractAutoCLIOptions(app.ModuleManager.Modules),
AddressCodec: authcodec.NewBech32Codec(sdk.GetConfig().GetBech32AccountAddrPrefix()),
ValidatorAddressCodec: authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ValidatorAddrPrefix()),
ConsensusAddressCodec: authcodec.NewBech32Codec(sdk.GetConfig().GetBech32ConsensusAddrPrefix()),
}
}

// GetKey returns the KVStoreKey for the provided store key.
//
// NOTE: This is solely to be used for testing purposes.
Expand Down

0 comments on commit 1306d88

Please sign in to comment.