summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/dav/lib/connector/sabre/node.php6
-rw-r--r--lib/private/files/storage/common.php8
2 files changed, 1 insertions, 13 deletions
diff --git a/apps/dav/lib/connector/sabre/node.php b/apps/dav/lib/connector/sabre/node.php
index 377536b5308..814aaceb077 100644
--- a/apps/dav/lib/connector/sabre/node.php
+++ b/apps/dav/lib/connector/sabre/node.php
@@ -34,12 +34,6 @@ use OCA\DAV\Connector\Sabre\Exception\InvalidPath;
abstract class Node implements \Sabre\DAV\INode {
- /**
- * Allow configuring the method used to generate Etags
- *
- * @var array(class_name, function_name)
- */
- public static $ETagFunction = null;
/**
* @var \OC\Files\View
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php
index cdd8eefd0d3..77a70226b37 100644
--- a/lib/private/files/storage/common.php
+++ b/lib/private/files/storage/common.php
@@ -372,13 +372,7 @@ abstract class Common implements Storage {
* @return string|false
*/
public function getETag($path) {
- $ETagFunction = \OCA\DAV\Connector\Sabre\Node::$ETagFunction;
- if ($ETagFunction) {
- $hash = call_user_func($ETagFunction, $path);
- return $hash;
- } else {
- return uniqid();
- }
+ return uniqid();
}
/**