Merge pull request #8853 from nextcloud/remove-resolve-reshare

Remove unused resolveReshare of old sharing code
This commit is contained in:
Morris Jobke 2018-03-16 20:23:01 +01:00 committed by GitHub
commit 9aced256c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 33 deletions

View File

@ -282,29 +282,6 @@ class Share extends Constants {
return $row; return $row;
} }
/**
* resolves reshares down to the last real share
* @param array $linkItem
* @return array file owner
*/
public static function resolveReShare($linkItem)
{
if (isset($linkItem['parent'])) {
$parent = $linkItem['parent'];
while (isset($parent)) {
$query = \OC_DB::prepare('SELECT * FROM `*PREFIX*share` WHERE `id` = ?', 1);
$item = $query->execute(array($parent))->fetchRow();
if (isset($item['parent'])) {
$parent = $item['parent'];
} else {
return $item;
}
}
}
return $linkItem;
}
/** /**
* Get the shared items of item type owned by the current user * Get the shared items of item type owned by the current user
* @param string $itemType * @param string $itemType

View File

@ -85,16 +85,6 @@ class Share extends \OC\Share\Constants {
return \OC\Share\Share::getShareByToken($token, $checkPasswordProtection); return \OC\Share\Share::getShareByToken($token, $checkPasswordProtection);
} }
/**
* resolves reshares down to the last real share
* @param array $linkItem
* @return array file owner
* @since 6.0.0
*/
public static function resolveReShare($linkItem) {
return \OC\Share\Share::resolveReShare($linkItem);
}
/** /**
* Get the shared items of item type owned by the current user * Get the shared items of item type owned by the current user