summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Trashbin.php
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2020-08-07 11:12:09 +0000
committerGitHub <noreply@github.com>2020-08-07 11:12:09 +0000
commita3d30bf4a23f3827103dd3ba5e10c16a58362a80 (patch)
treefbab4b630f55d242fc7fdc2f80571946497fc098 /apps/files_trashbin/lib/Trashbin.php
parenta2c262b68a0c64b808f77a8db4a1772f009de9de (diff)
parente84504c4d6a079d55d2f78ad21b1ad20d53035bb (diff)
downloadnextcloud-server-a3d30bf4a23f3827103dd3ba5e10c16a58362a80.tar.gz
nextcloud-server-a3d30bf4a23f3827103dd3ba5e10c16a58362a80.zip
Merge pull request #21954 from nextcloud/techdebt/noid/bootstrap-files_trashbin
Use IBootstrap for the files_trashbin app
Diffstat (limited to 'apps/files_trashbin/lib/Trashbin.php')
-rw-r--r--apps/files_trashbin/lib/Trashbin.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/apps/files_trashbin/lib/Trashbin.php b/apps/files_trashbin/lib/Trashbin.php
index db6fa35e85c..1e22349f2bb 100644
--- a/apps/files_trashbin/lib/Trashbin.php
+++ b/apps/files_trashbin/lib/Trashbin.php
@@ -1021,20 +1021,6 @@ class Trashbin {
}
/**
- * register hooks
- */
- public static function registerHooks() {
- // create storage wrapper on setup
- \OCP\Util::connectHook('OC_Filesystem', 'preSetup', 'OCA\Files_Trashbin\Storage', 'setupStorage');
- //Listen to delete user signal
- \OCP\Util::connectHook('OC_User', 'pre_deleteUser', 'OCA\Files_Trashbin\Hooks', 'deleteUser_hook');
- //Listen to post write hook
- \OCP\Util::connectHook('OC_Filesystem', 'post_write', 'OCA\Files_Trashbin\Hooks', 'post_write_hook');
- // pre and post-rename, disable trash logic for the copy+unlink case
- \OCP\Util::connectHook('OC_Filesystem', 'delete', 'OCA\Files_Trashbin\Trashbin', 'ensureFileScannedHook');
- }
-
- /**
* check if trash bin is empty for a given user
*
* @param string $user