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

Remove all the legacy handlers #569

Closed
wants to merge 2 commits into from
Closed
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: perf
module: other
pull_request: 569
description: Deprecated legacy handlers
backward_compatible: true
date: 2021-09-28T05:12:27.0203831Z
81 changes: 0 additions & 81 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 @@ -127,14 +127,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 message routing key for the profiles module.
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
9 changes: 2 additions & 7 deletions x/staging/fees/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,9 @@ func (AppModule) Name() string {
// RegisterInvariants performs a no-op.
func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry) {}

// Route returns the message routing key for the fees module.
// Deprecated: Route returns the message routing key for the fees module.
func (am AppModule) Route() sdk.Route {
return sdk.NewRoute(types.RouterKey, nil)
}

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

// QuerierRoute returns the fees module's querier route name.
Expand Down
50 changes: 0 additions & 50 deletions x/staging/posts/handler.go

This file was deleted.

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

// Route returns the message routing key for the posts module.
// Deprecated: Route returns the message routing key for the posts module.
func (am AppModule) Route() sdk.Route {
return sdk.NewRoute(types.RouterKey, NewHandler(am.keeper))
}

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

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

This file was deleted.

9 changes: 2 additions & 7 deletions x/staging/subspaces/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,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 message routing key for the subspaces module.
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