From 596df8fc6f64eae763217807e7b94d71865e1cec Mon Sep 17 00:00:00 2001
From: Morris Jobke <hey@morrisjobke.de>
Date: Sun, 29 Nov 2020 22:24:12 +0100
Subject: [PATCH] Remove unused Share::getItemSharedWithBySource()

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
---
 lib/private/Share/Share.php | 17 -----------------
 1 file changed, 17 deletions(-)

diff --git a/lib/private/Share/Share.php b/lib/private/Share/Share.php
index d898254938e..edcbd37be7b 100644
--- a/lib/private/Share/Share.php
+++ b/lib/private/Share/Share.php
@@ -233,23 +233,6 @@ class Share extends Constants {
 		return $shares;
 	}
 
-	/**
-	 * Get the item of item type shared with the current user by source
-	 * @param string $itemType
-	 * @param string $itemSource
-	 * @param int $format (optional) Format type must be defined by the backend
-	 * @param mixed $parameters
-	 * @param boolean $includeCollections
-	 * @param string $shareWith (optional) define against which user should be checked, default: current user
-	 * @return array
-	 */
-	public static function getItemSharedWithBySource($itemType, $itemSource, $format = self::FORMAT_NONE,
-													 $parameters = null, $includeCollections = false, $shareWith = null) {
-		$shareWith = ($shareWith === null) ? \OC_User::getUser() : $shareWith;
-		return self::getItems($itemType, $itemSource, self::$shareTypeUserAndGroups, $shareWith, null, $format,
-			$parameters, 1, $includeCollections, true);
-	}
-
 	/**
 	 * Get the shared item of item type owned by the current user
 	 * @param string $itemType
-- 
GitLab