From: Bjoern Schiessle Date: Tue, 17 Dec 2013 10:28:05 +0000 (+0100) Subject: remove duplicated code X-Git-Tag: v7.0.0alpha2~1013^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=83417d69be216c4ed58402006df3b901a95483ea;p=nextcloud-server.git remove duplicated code --- diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php index 96667493a51..41f352d853a 100644 --- a/apps/files_encryption/lib/proxy.php +++ b/apps/files_encryption/lib/proxy.php @@ -209,10 +209,7 @@ class Proxy extends \OC_FileProxy { $util = new Util($view, $userId); - // get relative path - $relativePath = \OCA\Encryption\Helper::stripUserFilesPath($path); - - list($owner, $ownerPath) = $util->getUidAndFilename($relativePath); + list($owner, $ownerPath) = $util->getUidAndFilename($relPath); // Delete keyfile & shareKey so it isn't orphaned if (!Keymanager::deleteFileKey($view, $ownerPath)) {