Removed unused method

This commit is contained in:
Vincent Petry 2013-11-05 17:14:19 +01:00
parent e3868ba118
commit eb6fc14f84

View file

@ -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
*