]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix!: Remove User events which have a typed event replacement 39571/head
authorJoas Schilling <coding@schilljs.com>
Tue, 25 Jul 2023 17:38:08 +0000 (19:38 +0200)
committerJoas Schilling <coding@schilljs.com>
Thu, 27 Jul 2023 07:57:54 +0000 (09:57 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/User/User.php

index dc4cdec1235b02340859cc023b9b7c7788614770..2530173bea4440d2ab5cac9cb272c209f4a61a84 100644 (file)
@@ -271,8 +271,6 @@ class User implements IUser {
         * @return bool
         */
        public function delete() {
-               /** @deprecated 21.0.0 use BeforeUserDeletedEvent event with the IEventDispatcher instead */
-               $this->legacyDispatcher->dispatch(IUser::class . '::preDelete', new GenericEvent($this));
                if ($this->emitter) {
                        /** @deprecated 21.0.0 use BeforeUserDeletedEvent event with the IEventDispatcher instead */
                        $this->emitter->emit('\OC\User', 'preDelete', [$this]);
@@ -310,8 +308,6 @@ class User implements IUser {
                        $accountManager = \OCP\Server::get(AccountManager::class);
                        $accountManager->deleteUser($this);
 
-                       /** @deprecated 21.0.0 use UserDeletedEvent event with the IEventDispatcher instead */
-                       $this->legacyDispatcher->dispatch(IUser::class . '::postDelete', new GenericEvent($this));
                        if ($this->emitter) {
                                /** @deprecated 21.0.0 use UserDeletedEvent event with the IEventDispatcher instead */
                                $this->emitter->emit('\OC\User', 'postDelete', [$this]);