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

feat: remove all legacy handlers #795

Merged
merged 1 commit into from
Mar 24, 2022
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
65 changes: 0 additions & 65 deletions x/profiles/handler.go

This file was deleted.

9 changes: 2 additions & 7 deletions x/profiles/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,9 @@ func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry) {
keeper.RegisterInvariants(ir, am.keeper)
}

// Route returns the message routing key for the profiles module.
// Deprecated: Route returns the module's message router and handler.
func (am AppModule) Route() sdk.Route {
return sdk.NewRoute(types.RouterKey, NewHandler(am.keeper))
}

// NewHandler returns an sdk.Handler for the profiles module.
func (am AppModule) NewHandler() sdk.Handler {
return NewHandler(am.keeper)
return sdk.Route{}
}

// QuerierRoute returns the profiles module's querier route name.
Expand Down
41 changes: 0 additions & 41 deletions x/relationships/handler.go

This file was deleted.

9 changes: 2 additions & 7 deletions x/relationships/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,9 @@ func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry) {
keeper.RegisterInvariants(ir, am.keeper)
}

// Route returns the message routing key for the relationships module.
// Deprecated: Route returns the module's message router and handler.
func (am AppModule) Route() sdk.Route {
return sdk.NewRoute(types.RouterKey, NewHandler(am.keeper))
}

// NewHandler returns an sdk.Handler for the relationships module.
func (am AppModule) NewHandler() sdk.Handler {
return NewHandler(am.keeper)
return sdk.Route{}
}

// QuerierRoute returns the relationships module's querier route name.
Expand Down
53 changes: 0 additions & 53 deletions x/subspaces/handler.go

This file was deleted.

9 changes: 2 additions & 7 deletions x/subspaces/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,9 @@ func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry) {
keeper.RegisterInvariants(ir, am.keeper)
}

// Route returns the message routing key for the subspaces module.
// Deprecated: Route returns the module's message router and handler.
func (am AppModule) Route() sdk.Route {
return sdk.NewRoute(types.RouterKey, NewHandler(am.keeper))
}

// NewHandler returns an sdk.Handler for the subspaces module.
func (am AppModule) NewHandler() sdk.Handler {
return NewHandler(am.keeper)
return sdk.Route{}
}

// QuerierRoute returns the subspaces module's querier route name.
Expand Down