From eb6fc14f844e4e3846565d8bad8aaa8f26b7588b Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 5 Nov 2013 17:14:19 +0100 Subject: Removed unused method --- apps/files_sharing/lib/watcher.php | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'apps/files_sharing/lib/watcher.php') diff --git a/apps/files_sharing/lib/watcher.php b/apps/files_sharing/lib/watcher.php index 818830411d0..12e0efc22c6 100644 --- a/apps/files_sharing/lib/watcher.php +++ b/apps/files_sharing/lib/watcher.php @@ -26,24 +26,6 @@ namespace OC\Files\Cache; */ class Shared_Watcher extends Watcher { - /** - * @brief get file owner and path - * @param string $filename - * @return array with the oweners uid and the owners path - */ - private static function getUidAndFilename($filename) { - // FIXME: duplicate of Updater::getUidAndFilename() - $uid = \OC\Files\Filesystem::getOwner($filename); - \OC\Files\Filesystem::initMountPoints($uid); - - if ($uid != \OCP\User::getUser()) { - $info = \OC\Files\Filesystem::getFileInfo($filename); - $ownerView = new \OC\Files\View('/' . $uid . '/files'); - $filename = $ownerView->getPath($info['fileid']); - } - return array($uid, '/files/' . $filename); - } - /** * check $path for updates * -- cgit v1.2.3