diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-12-30 19:23:31 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-12-30 19:23:31 -0500 |
commit | 83064aca51db7d8382282743ade2ab9da2a6e1b0 (patch) | |
tree | f5f75f0693ab76906835d6b9dff98a9666969fe4 /lib/files/filesystem.php | |
parent | a5cb7363a5031d25d3e4cbd46817930c19893143 (diff) | |
download | nextcloud-server-83064aca51db7d8382282743ade2ab9da2a6e1b0.tar.gz nextcloud-server-83064aca51db7d8382282743ade2ab9da2a6e1b0.zip |
Remove old etag code
Diffstat (limited to 'lib/files/filesystem.php')
-rw-r--r-- | lib/files/filesystem.php | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php index 8183b8ff99c..d62b5186cbe 100644 --- a/lib/files/filesystem.php +++ b/lib/files/filesystem.php @@ -582,23 +582,6 @@ class Filesystem { return self::$defaultInstance->hasUpdated($path, $time); } - static public function removeETagHook($params, $root = false) { - if (isset($params['path'])) { - $path = $params['path']; - } else { - $path = $params['oldpath']; - } - - if ($root) { // reduce path to the required part of it (no 'username/files') - $fakeRootView = new View($root); - $count = 1; - $path = str_replace(\OC_App::getStorage("files")->getAbsolutePath(''), "", $fakeRootView->getAbsolutePath($path), $count); - } - - $path = self::normalizePath($path); - \OC_Connector_Sabre_Node::removeETagPropertyForPath($path); - } - /** * normalize a path * @@ -682,10 +665,6 @@ class Filesystem { } } -\OC_Hook::connect('OC_Filesystem', 'post_write', 'OC_Filesystem', 'removeETagHook'); -\OC_Hook::connect('OC_Filesystem', 'post_delete', 'OC_Filesystem', 'removeETagHook'); -\OC_Hook::connect('OC_Filesystem', 'post_rename', 'OC_Filesystem', 'removeETagHook'); - \OC_Hook::connect('OC_Filesystem', 'post_write', '\OC\Files\Cache\Updater', 'writeHook'); \OC_Hook::connect('OC_Filesystem', 'post_delete', '\OC\Files\Cache\Updater', 'deleteHook'); \OC_Hook::connect('OC_Filesystem', 'post_rename', '\OC\Files\Cache\Updater', 'renameHook'); |