refactor(user): remove the now-empty listeners file
The user package no longer registers any event listeners, so drop the empty RegisterListeners hook and its caller.
This commit is contained in:
parent
71dcb096be
commit
9a810f7632
|
|
@ -145,7 +145,6 @@ func FullInit() {
|
|||
// Start processing events
|
||||
go func() {
|
||||
models.RegisterListeners()
|
||||
user.RegisterListeners()
|
||||
migrationHandler.RegisterListeners()
|
||||
ws.RegisterListeners()
|
||||
err := events.InitEvents()
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
// Vikunja is a to-do list application to facilitate your life.
|
||||
// Copyright 2018-present Vikunja and contributors. All rights reserved.
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
package user
|
||||
|
||||
// RegisterListeners registers all event listeners for the user package.
|
||||
// The user count metric is now counted on demand (see pkg/metrics), so there are
|
||||
// currently no listeners to register. This hook is kept for future user events.
|
||||
func RegisterListeners() {}
|
||||
|
|
@ -99,7 +99,6 @@ func init() {
|
|||
"ListAllUsers": reflect.ValueOf(user.ListAllUsers),
|
||||
"ListUsers": reflect.ValueOf(user.ListUsers),
|
||||
"RegisterDeletionNotificationCron": reflect.ValueOf(user.RegisterDeletionNotificationCron),
|
||||
"RegisterListeners": reflect.ValueOf(user.RegisterListeners),
|
||||
"RegisterTokenCleanupCron": reflect.ValueOf(user.RegisterTokenCleanupCron),
|
||||
"RequestDeletion": reflect.ValueOf(user.RequestDeletion),
|
||||
"RequestUserPasswordResetToken": reflect.ValueOf(user.RequestUserPasswordResetToken),
|
||||
|
|
|
|||
Loading…
Reference in New Issue