From 9b7ef2962eca5db6df9f9d1a7af73ba477d61a1f Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 26 Sep 2022 21:07:08 +0200 Subject: remove listeners to OC_Filesystem::(write|rename) old style hooks - the events are not emitted anymore - OC_Filesystem::isBlacklisted() is not called from anywhere else Signed-off-by: Arthur Schiwon --- lib/base.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib/base.php') diff --git a/lib/base.php b/lib/base.php index 055cc6786f0..7c6ffe8ae61 100644 --- a/lib/base.php +++ b/lib/base.php @@ -745,7 +745,6 @@ class OC { } self::registerCleanupHooks($systemConfig); - self::registerFilesystemHooks(); self::registerShareHooks($systemConfig); self::registerEncryptionWrapperAndHooks(); self::registerAccountHooks(); @@ -917,15 +916,6 @@ class OC { \OC\Collaboration\Reference\File\FileReferenceEventListener::register(Server::get(IEventDispatcher::class)); } - /** - * register hooks for the filesystem - */ - public static function registerFilesystemHooks() { - // Check for blacklisted files - OC_Hook::connect('OC_Filesystem', 'write', Filesystem::class, 'isBlacklisted'); - OC_Hook::connect('OC_Filesystem', 'rename', Filesystem::class, 'isBlacklisted'); - } - /** * register hooks for sharing */ -- cgit v1.2.3