diff options
author | Robin Appelman <robin@icewind.nl> | 2024-02-23 18:00:12 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-02-26 18:46:35 +0100 |
commit | d0ebe369061027e8026b93b5083dcaadc3a25412 (patch) | |
tree | 1668a8f57e14a6b878bf4db07748e42233ae752e /lib | |
parent | 00c53c9e78ffca1985b4b22314af08da10a09826 (diff) | |
download | nextcloud-server-d0ebe369061027e8026b93b5083dcaadc3a25412.tar.gz nextcloud-server-d0ebe369061027e8026b93b5083dcaadc3a25412.zip |
fix: remove old test-only methods
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share/Share.php | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/private/Share/Share.php b/lib/private/Share/Share.php index 8322c141b1f..d94d389fc4d 100644 --- a/lib/private/Share/Share.php +++ b/lib/private/Share/Share.php @@ -94,41 +94,6 @@ class Share extends Constants { } /** - * Get the items of item type shared with the current user - * - * @param string $itemType - * @param int $format (optional) Format type must be defined by the backend - * @param mixed $parameters (optional) - * @param int $limit Number of items to return (optional) Returns all by default - * @param boolean $includeCollections (optional) - * @return mixed Return depends on format - * @deprecated TESTS ONLY - this methods is only used by tests - * called like this: - * \OC\Share\Share::getItemsSharedWith('folder'); (apps/files_sharing/tests/UpdaterTest.php) - */ - public static function getItemsSharedWith() { - return self::getItems('folder', null, self::$shareTypeUserAndGroups, \OC_User::getUser()); - } - - /** - * Get the items of item type shared with a user - * - * @param string $itemType - * @param string $user id for which user we want the shares - * @param int $format (optional) Format type must be defined by the backend - * @param mixed $parameters (optional) - * @param int $limit Number of items to return (optional) Returns all by default - * @param boolean $includeCollections (optional) - * @return mixed Return depends on format - * @deprecated TESTS ONLY - this methods is only used by tests - * called like this: - * \OC\Share\Share::getItemsSharedWithUser('test', $shareWith); (tests/lib/Share/Backend.php) - */ - public static function getItemsSharedWithUser($itemType, $user) { - return self::getItems('test', null, self::$shareTypeUserAndGroups, $user); - } - - /** * Get the item of item type shared with a given user by source * * @param string $itemType |