diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-03-16 12:26:38 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-03-16 12:26:38 +0100 |
commit | ade05f40ec66039f92c157930d0faf537513d2ae (patch) | |
tree | f8fa1968fde43dc069fcee5a894f9e4ceb3ee62c /lib/private/Share | |
parent | f83aa58d1f82beee86d3e91f390efb48b98a52e0 (diff) | |
download | nextcloud-server-ade05f40ec66039f92c157930d0faf537513d2ae.tar.gz nextcloud-server-ade05f40ec66039f92c157930d0faf537513d2ae.zip |
Remove unused resolveReshare of old sharing code
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Share')
-rw-r--r-- | lib/private/Share/Share.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/private/Share/Share.php b/lib/private/Share/Share.php index 4514cdbae1b..90a05ac51a8 100644 --- a/lib/private/Share/Share.php +++ b/lib/private/Share/Share.php @@ -283,29 +283,6 @@ class Share extends Constants { } /** - * 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 * @param string $itemType * @param int $format (optional) Format type must be defined by the backend |