From d3959ee1526d550e2d0c6e8e2d951635047e9cb9 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 4 Apr 2016 09:00:06 +0200 Subject: [PATCH] Share type 2 is private This was added to the factory for legacy reasons when converting from old to new sharing code. It is not used anymore so can be deleted. Which means we no longer expose internal types. --- lib/private/Share20/ProviderFactory.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/private/Share20/ProviderFactory.php b/lib/private/Share20/ProviderFactory.php index 4cb1ac71a8..96203104f7 100644 --- a/lib/private/Share20/ProviderFactory.php +++ b/lib/private/Share20/ProviderFactory.php @@ -144,9 +144,7 @@ class ProviderFactory implements IProviderFactory { public function getProviderForType($shareType) { $provider = null; - //FIXME we should not report type 2 if ($shareType === \OCP\Share::SHARE_TYPE_USER || - $shareType === 2 || $shareType === \OCP\Share::SHARE_TYPE_GROUP || $shareType === \OCP\Share::SHARE_TYPE_LINK) { $provider = $this->defaultShareProvider();