Browse Source

Merge pull request #8071 from nextcloud/remove-silly-code

Cleanup unused code
pull/8079/head
Morris Jobke 8 years ago
committed by GitHub
parent
commit
97c216ea06
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      apps/dav/lib/Connector/Sabre/TagsPlugin.php
  2. 2
      apps/files_trashbin/lib/Trashbin.php
  3. 3
      lib/private/Files/ObjectStore/ObjectStoreStorage.php

3
apps/dav/lib/Connector/Sabre/TagsPlugin.php

@ -240,10 +240,9 @@ class TagsPlugin extends \Sabre\DAV\ServerPlugin
}
}
$tags = null;
$isFav = null;
$propFind->handle(self::TAGS_PROPERTYNAME, function() use ($tags, &$isFav, $node) {
$propFind->handle(self::TAGS_PROPERTYNAME, function() use (&$isFav, $node) {
list($tags, $isFav) = $this->getTagsAndFav($node->getId());
return new TagList($tags);
});

2
apps/files_trashbin/lib/Trashbin.php

@ -635,8 +635,6 @@ class Trashbin {
if ($timestamp) {
$filename = $filename . '.d' . $timestamp;
} else {
$filename = $filename;
}
$target = Filesystem::normalizePath('files_trashbin/files/' . $filename);

3
lib/private/Files/ObjectStore/ObjectStoreStorage.php

@ -194,9 +194,8 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common {
'message' => 'Could not delete object ' . $this->getURN($stat['fileid']) . ' for ' . $path,
]);
return false;
} else {
//removing from cache is ok as it does not exist in the objectstore anyway
}
//removing from cache is ok as it does not exist in the objectstore anyway
}
$this->getCache()->remove($path);
return true;

Loading…
Cancel
Save