diff --git a/pkg/initialize/init.go b/pkg/initialize/init.go index df11ef01f..dca17cb60 100644 --- a/pkg/initialize/init.go +++ b/pkg/initialize/init.go @@ -145,7 +145,6 @@ func FullInit() { // Start processing events go func() { models.RegisterListeners() - user.RegisterListeners() migrationHandler.RegisterListeners() ws.RegisterListeners() err := events.InitEvents() diff --git a/pkg/user/listeners.go b/pkg/user/listeners.go deleted file mode 100644 index dfc4a5a2e..000000000 --- a/pkg/user/listeners.go +++ /dev/null @@ -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 . - -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() {} diff --git a/pkg/yaegi_symbols/vikunja_user.go b/pkg/yaegi_symbols/vikunja_user.go index 86b3aed7a..268869221 100644 --- a/pkg/yaegi_symbols/vikunja_user.go +++ b/pkg/yaegi_symbols/vikunja_user.go @@ -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),