Skip to content

Commit

Permalink
Remove legacy handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
dadamu committed Oct 21, 2021
1 parent 71960c8 commit 1d83c11
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 209 deletions.
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

0 comments on commit 1d83c11

Please sign in to comment.