Cleanup unused code

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2018-01-26 15:25:19 +01:00
parent ca493ab5b1
commit c005fc6755
No known key found for this signature in database
GPG key ID: FE03C3A163FEDE68
3 changed files with 2 additions and 6 deletions

View file

@ -240,10 +240,9 @@ class TagsPlugin extends \Sabre\DAV\ServerPlugin
} }
} }
$tags = null;
$isFav = 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()); list($tags, $isFav) = $this->getTagsAndFav($node->getId());
return new TagList($tags); return new TagList($tags);
}); });

View file

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

View file

@ -194,9 +194,8 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common {
'message' => 'Could not delete object ' . $this->getURN($stat['fileid']) . ' for ' . $path, 'message' => 'Could not delete object ' . $this->getURN($stat['fileid']) . ' for ' . $path,
]); ]);
return false; 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); $this->getCache()->remove($path);
return true; return true;