aboutsummaryrefslogtreecommitdiffstats
path: root/lib/connector
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-12-30 19:23:31 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2012-12-30 19:23:31 -0500
commit83064aca51db7d8382282743ade2ab9da2a6e1b0 (patch)
treef5f75f0693ab76906835d6b9dff98a9666969fe4 /lib/connector
parenta5cb7363a5031d25d3e4cbd46817930c19893143 (diff)
downloadnextcloud-server-83064aca51db7d8382282743ade2ab9da2a6e1b0.tar.gz
nextcloud-server-83064aca51db7d8382282743ade2ab9da2a6e1b0.zip
Remove old etag code
Diffstat (limited to 'lib/connector')
-rw-r--r--lib/connector/sabre/node.php24
1 files changed, 0 insertions, 24 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 ));
- }
}