summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-01-10 13:50:14 +0100
committerGitHub <noreply@github.com>2017-01-10 13:50:14 +0100
commit4dd2a1e6798b9915e20ac72272fbe1bab0266e93 (patch)
tree0af51b4d71cac3458391d1d60cc0a33f8be2591e /lib/base.php
parenta5bf14ada3b7edab724fac30ea89996f1a10f157 (diff)
parente19e7c08ad31816914710c45c8bfe0be9b3afff4 (diff)
downloadnextcloud-server-4dd2a1e6798b9915e20ac72272fbe1bab0266e93.tar.gz
nextcloud-server-4dd2a1e6798b9915e20ac72272fbe1bab0266e93.zip
Merge pull request #2943 from nextcloud/kill_old_preview_code
Cleanup old preview code
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/base.php b/lib/base.php
index dc8b29932ef..8b271010b10 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -747,9 +747,6 @@ class OC {
self::registerCacheHooks();
self::registerFilesystemHooks();
- if ($systemConfig->getValue('enable_previews', true)) {
- self::registerPreviewHooks();
- }
self::registerShareHooks();
self::registerLogRotate();
self::registerEncryptionWrapper();
@@ -900,20 +897,6 @@ class OC {
}
/**
- * register hooks for previews
- */
- public static function registerPreviewHooks() {
- OC_Hook::connect('OC_Filesystem', 'post_write', 'OC\Preview', 'post_write');
- OC_Hook::connect('OC_Filesystem', 'delete', 'OC\Preview', 'prepare_delete_files');
- OC_Hook::connect('\OCP\Versions', 'preDelete', 'OC\Preview', 'prepare_delete');
- OC_Hook::connect('\OCP\Trashbin', 'preDelete', 'OC\Preview', 'prepare_delete');
- OC_Hook::connect('OC_Filesystem', 'post_delete', 'OC\Preview', 'post_delete_files');
- OC_Hook::connect('\OCP\Versions', 'delete', 'OC\Preview', 'post_delete_versions');
- OC_Hook::connect('\OCP\Trashbin', 'delete', 'OC\Preview', 'post_delete');
- OC_Hook::connect('\OCP\Versions', 'rollback', 'OC\Preview', 'post_delete_versions');
- }
-
- /**
* register hooks for sharing
*/
public static function registerShareHooks() {