From ade05f40ec66039f92c157930d0faf537513d2ae Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 16 Mar 2018 12:26:38 +0100 Subject: [PATCH] Remove unused resolveReshare of old sharing code Signed-off-by: Morris Jobke --- lib/private/Share/Share.php | 23 ----------------------- lib/public/Share.php | 10 ---------- 2 files changed, 33 deletions(-) diff --git a/lib/private/Share/Share.php b/lib/private/Share/Share.php index 4514cdbae1..90a05ac51a 100644 --- a/lib/private/Share/Share.php +++ b/lib/private/Share/Share.php @@ -282,29 +282,6 @@ class Share extends Constants { 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 * @param string $itemType diff --git a/lib/public/Share.php b/lib/public/Share.php index b7fb7296e4..011d56ab5a 100644 --- a/lib/public/Share.php +++ b/lib/public/Share.php @@ -85,16 +85,6 @@ class Share extends \OC\Share\Constants { 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