summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-14 14:39:25 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-16 13:17:12 +0200
commit2ff55560e21874ce4d3c724db20a6ebd86e65221 (patch)
tree1601a0d8160ac4a49a4a330f5190b86e7ce1d79c
parentf2889dc6e4aa701f36081b314f38f620cbb1fc88 (diff)
downloadnextcloud-server-2ff55560e21874ce4d3c724db20a6ebd86e65221.tar.gz
nextcloud-server-2ff55560e21874ce4d3c724db20a6ebd86e65221.zip
Remove $ETagFunction - it was never used
-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();
}
/**