Remove $ETagFunction - it was never used
This commit is contained in:
parent
f2889dc6e4
commit
2ff55560e2
|
@ -34,12 +34,6 @@ use OCA\DAV\Connector\Sabre\Exception\InvalidPath;
|
||||||
|
|
||||||
|
|
||||||
abstract class Node implements \Sabre\DAV\INode {
|
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
|
* @var \OC\Files\View
|
||||||
|
|
|
@ -372,14 +372,8 @@ abstract class Common implements Storage {
|
||||||
* @return string|false
|
* @return string|false
|
||||||
*/
|
*/
|
||||||
public function getETag($path) {
|
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();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* clean a path, i.e. remove all redundant '.' and '..'
|
* clean a path, i.e. remove all redundant '.' and '..'
|
||||||
|
|
Loading…
Reference in New Issue