Skip to content
Snippets Groups Projects
Commit 83417d69 authored by Björn Schießle's avatar Björn Schießle
Browse files

remove duplicated code

parent 5a119452
No related branches found
No related tags found
No related merge requests found
...@@ -209,10 +209,7 @@ class Proxy extends \OC_FileProxy { ...@@ -209,10 +209,7 @@ class Proxy extends \OC_FileProxy {
$util = new Util($view, $userId); $util = new Util($view, $userId);
// get relative path list($owner, $ownerPath) = $util->getUidAndFilename($relPath);
$relativePath = \OCA\Encryption\Helper::stripUserFilesPath($path);
list($owner, $ownerPath) = $util->getUidAndFilename($relativePath);
// Delete keyfile & shareKey so it isn't orphaned // Delete keyfile & shareKey so it isn't orphaned
if (!Keymanager::deleteFileKey($view, $ownerPath)) { if (!Keymanager::deleteFileKey($view, $ownerPath)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment