Skip to content

Commit 38702df

Browse files
committed
chore: Remove dead code
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent 56baa40 commit 38702df

2 files changed

Lines changed: 1 addition & 17 deletions

File tree

apps/files_sharing/lib/Controller/ShareAPIController.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,23 +1811,6 @@ private function getDeckShareHelper() {
18111811
return $this->serverContainer->get('\OCA\Deck\Sharing\ShareAPIHelper');
18121812
}
18131813

1814-
/**
1815-
* Returns the helper of ShareAPIHelper for sciencemesh shares.
1816-
*
1817-
* If the sciencemesh application is not enabled or the helper is not available
1818-
* a ContainerExceptionInterface is thrown instead.
1819-
*
1820-
* @return ShareAPIHelper
1821-
* @throws ContainerExceptionInterface
1822-
*/
1823-
private function getSciencemeshShareHelper() {
1824-
if (!$this->appManager->isEnabledForUser('sciencemesh')) {
1825-
throw new QueryException();
1826-
}
1827-
1828-
return $this->serverContainer->get('\OCA\ScienceMesh\Sharing\ShareAPIHelper');
1829-
}
1830-
18311814
/**
18321815
* @param string $viewer
18331816
* @param Node $node

lib/private/AppFramework/DependencyInjection/DIContainer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
use OC\AppFramework\Middleware\Security\SameSiteCookieMiddleware;
3030
use OC\AppFramework\Middleware\Security\SecurityMiddleware;
3131
use OC\AppFramework\Middleware\SessionMiddleware;
32+
use OC\AppFramework\QueryException;
3233
use OC\AppFramework\ScopedPsrLogger;
3334
use OC\AppFramework\Services\AppConfig;
3435
use OC\AppFramework\Services\InitialState;

0 commit comments

Comments
 (0)