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.
This commit is contained in:
Roeland Jago Douma 2016-04-04 09:00:06 +02:00
parent a0e2eae7de
commit d3959ee152

View file

@ -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();