aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-07-06 10:56:01 +0200
committerJoas Schilling <coding@schilljs.com>2023-07-07 10:53:20 +0200
commit2bf339e2a77f26c53e589acbcf39ffc2dfacfeba (patch)
tree354599eb21c90cc429b15599b59eafae5762b4eb /apps
parent80ee81faa1333575aa93b0fd0321d0e5eb6c060d (diff)
downloadnextcloud-server-2bf339e2a77f26c53e589acbcf39ffc2dfacfeba.tar.gz
nextcloud-server-2bf339e2a77f26c53e589acbcf39ffc2dfacfeba.zip
fix(dav): Remove listener for events that never existed anywhere
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/AppInfo/Application.php20
1 files changed, 1 insertions, 19 deletions
diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php
index 0cfa3efde9c..620f8d7e126 100644
--- a/apps/dav/lib/AppInfo/Application.php
+++ b/apps/dav/lib/AppInfo/Application.php
@@ -32,8 +32,6 @@ declare(strict_types=1);
*/
namespace OCA\DAV\AppInfo;
-use Exception;
-use OCA\DAV\BackgroundJob\UpdateCalendarResourcesRoomsBackgroundJob;
use OCA\DAV\CalDAV\Activity\Backend;
use OCA\DAV\CalDAV\AppCalendar\AppCalendarPlugin;
use OCA\DAV\CalDAV\CalendarManager;
@@ -106,7 +104,6 @@ use OCP\IServerContainer;
use OCP\IUser;
use Psr\Container\ContainerInterface;
use Psr\Log\LoggerInterface;
-use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
use Throwable;
use function is_null;
@@ -217,8 +214,7 @@ class Application extends App implements IBootstrap {
public function registerHooks(HookManager $hm,
IEventDispatcher $dispatcher,
- IAppContainer $container,
- IServerContainer $serverContainer) {
+ IAppContainer $container) {
$hm->setup();
// first time login event setup
@@ -248,20 +244,6 @@ class Application extends App implements IBootstrap {
// Here we should recalculate if reminders should be sent to new or old sharees
});
-
- $eventHandler = function () use ($container, $serverContainer): void {
- try {
- /** @var UpdateCalendarResourcesRoomsBackgroundJob $job */
- $job = $container->query(UpdateCalendarResourcesRoomsBackgroundJob::class);
- $job->run([]);
- $serverContainer->getJobList()->setLastRun($job);
- } catch (Exception $ex) {
- $serverContainer->get(LoggerInterface::class)->error($ex->getMessage(), ['exception' => $ex]);
- }
- };
-
- $dispatcher->addListener('\OCP\Calendar\Resource\ForceRefreshEvent', $eventHandler);
- $dispatcher->addListener('\OCP\Calendar\Room\ForceRefreshEvent', $eventHandler);
}
public function registerContactsManager(IContactsManager $cm, IAppContainer $container): void {