summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-04-04 09:00:06 +0200
committerRoeland Jago Douma <rullzer@owncloud.com>2016-04-04 09:00:06 +0200
commitd3959ee1526d550e2d0c6e8e2d951635047e9cb9 (patch)
tree559773131bd36efb9ab0e54b3f4336ca04a9cfff /lib/private/Share20
parenta0e2eae7de06ce31026ab0fbca9e86f8938bcd44 (diff)
downloadnextcloud-server-d3959ee1526d550e2d0c6e8e2d951635047e9cb9.tar.gz
nextcloud-server-d3959ee1526d550e2d0c6e8e2d951635047e9cb9.zip
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.
Diffstat (limited to 'lib/private/Share20')
-rw-r--r--lib/private/Share20/ProviderFactory.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/private/Share20/ProviderFactory.php b/lib/private/Share20/ProviderFactory.php
index 4cb1ac71a88..96203104f74 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();