summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/connector/sabre/node.php24
-rw-r--r--lib/files/filesystem.php21
-rw-r--r--lib/files/view.php2
-rw-r--r--lib/filesystem.php7
4 files changed, 0 insertions, 54 deletions
diff --git a/lib/connector/sabre/node.php b/lib/connector/sabre/node.php
index d4023dfad78..dd8ae152ff5 100644
--- a/lib/connector/sabre/node.php
+++ b/lib/connector/sabre/node.php
@@ -218,28 +218,4 @@ abstract class OC_Connector_Sabre_Node implements Sabre_DAV_INode, Sabre_DAV_IPr
return null;
}
- /**
- * @brief Remove the ETag from the cache.
- * @param string $path Path of the file
- */
- static public function removeETagPropertyForPath($path) {
- // remove tags from this and parent paths
- $paths = array();
- while ($path != '/' && $path != '.' && $path != '' && $path != '\\') {
- $paths[] = $path;
- $path = dirname($path);
- }
- if (empty($paths)) {
- return;
- }
- $paths[] = $path;
- $path_placeholders = join(',', array_fill(0, count($paths), '?'));
- $query = OC_DB::prepare( 'DELETE FROM `*PREFIX*properties`'
- .' WHERE `userid` = ?'
- .' AND `propertyname` = ?'
- .' AND `propertypath` IN ('.$path_placeholders.')'
- );
- $vals = array( OC_User::getUser(), self::GETETAG_PROPERTYNAME );
- $query->execute(array_merge( $vals, $paths ));
- }
}
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');
diff --git a/lib/files/view.php b/lib/files/view.php
index 592c484a21c..77146895e64 100644
--- a/lib/files/view.php
+++ b/lib/files/view.php
@@ -462,8 +462,6 @@ class View {
Filesystem::signal_post_write,
array(Filesystem::signal_param_path => $path2)
);
- } else { // no real copy, file comes from somewhere else, e.g. version rollback -> just update the file cache and the webdav properties without all the other post_write actions
- Filesystem::removeETagHook(array("path" => $path2), $this->fakeRoot);
}
return $result;
} else {
diff --git a/lib/filesystem.php b/lib/filesystem.php
index 20b5ab27909..57cca902303 100644
--- a/lib/filesystem.php
+++ b/lib/filesystem.php
@@ -399,13 +399,6 @@ class OC_Filesystem {
}
/**
- * @deprecated OC_Filesystem is replaced by \OC\Files\Filesystem
- */
- static public function removeETagHook($params, $root = false) {
- \OC\Files\Filesystem::removeETagHook($params, $root);
- }
-
- /**
* normalize a path
*
* @deprecated OC_Filesystem is replaced by \OC\Files\Filesystem