Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: potentially unneeded, deprecated and legacy functions in use #345

Merged
merged 1 commit into from
Jan 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions x/chainmain/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ func (AppModuleBasic) Name() string {
}

// RegisterLegacyAminoCodec does nothing. IBC does not support amino.
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
types.RegisterLegacyAminoCodec(cdc)
}
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {}

// RegisterInterfaces registers the module's interface types
func (a AppModuleBasic) RegisterInterfaces(_ cdctypes.InterfaceRegistry) {}
Expand Down
17 changes: 0 additions & 17 deletions x/chainmain/types/codec.go

This file was deleted.

56 changes: 0 additions & 56 deletions x/supply/keeper/querier.go

This file was deleted.

6 changes: 2 additions & 4 deletions x/supply/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ func (AppModuleBasic) Name() string {
}

// RegisterLegacyAminoCodec does nothing. IBC does not support amino.
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
types.RegisterLegacyAminoCodec(cdc)
}
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {}

// RegisterInterfaces registers the module's interface types
func (a AppModuleBasic) RegisterInterfaces(_ cdctypes.InterfaceRegistry) {}
Expand Down Expand Up @@ -124,7 +122,7 @@ func (AppModule) QuerierRoute() string { return types.RouterKey }

// LegacyQuerierHandler returns the capability module's Querier.
func (am AppModule) LegacyQuerierHandler(legacyQuerierCdc *codec.LegacyAmino) sdk.Querier {
return keeper.NewQuerier(am.keeper, legacyQuerierCdc)
return nil
}

// RegisterServices registers query server.
Expand Down
18 changes: 0 additions & 18 deletions x/supply/types/codec.go

This file was deleted.