Remove $ETagFunction - it was never used

This commit is contained in:
Thomas Müller 2015-10-14 14:39:25 +02:00
parent f2889dc6e4
commit 2ff55560e2
2 changed files with 1 additions and 13 deletions

View File

@ -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

View File

@ -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();
}
/**