diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 738534a66..217b35d16 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -10,7 +10,6 @@ use OCA\Tables\Listener\TablesReferenceListener; use OCA\Tables\Listener\UserDeletedListener; use OCA\Tables\Reference\ContentReferenceProvider; -use OCA\Tables\Reference\LegacyReferenceProvider; use OCA\Tables\Reference\ReferenceProvider; use OCA\Tables\Search\SearchTablesProvider; use OCP\AppFramework\App; @@ -52,17 +51,7 @@ public function register(IRegistrationContext $context): void { $context->registerSearchProvider(SearchTablesProvider::class); - try { - /** @var IConfig $config */ - $config = Server::get(IConfig::class); - if (version_compare($config->getSystemValueString('version', '0.0.0'), '26.0.0', '<')) { - $context->registerReferenceProvider(LegacyReferenceProvider::class); - } else { - $context->registerReferenceProvider(ReferenceProvider::class); - } - $context->registerReferenceProvider(ContentReferenceProvider::class); - } catch (NotFoundExceptionInterface|ContainerExceptionInterface $e) { - } + $context->registerReferenceProvider(ReferenceProvider::class); $context->registerCapability(Capabilities::class); } diff --git a/lib/Reference/LegacyReferenceProvider.php b/lib/Reference/LegacyReferenceProvider.php deleted file mode 100644 index 86088eba3..000000000 --- a/lib/Reference/LegacyReferenceProvider.php +++ /dev/null @@ -1,67 +0,0 @@ -referenceHelper = $referenceHelper; - $this->referenceManager = $referenceManager; - $this->urlGenerator = $urlGenerator; - $this->l10n = $l10n; - } - - /** - * @inheritDoc - */ - public function matchReference(string $referenceText): bool { - return $this->referenceHelper->matchReference($referenceText); - } - - /** - * @inheritDoc - */ - public function resolveReference(string $referenceText): ?IReference { - return $this->referenceHelper->resolveReference($referenceText); - } - - /** - * @param string $url - * @return int|null - */ - public function getTableIdFromLink(string $url): ?int { - return $this->referenceHelper->getTableIdFromLink($url); - } - - /** - * @inheritDoc - */ - public function getCachePrefix(string $referenceId): string { - return $this->referenceHelper->getCachePrefix($referenceId); - } - - /** - * @inheritDoc - */ - public function getCacheKey(string $referenceId): ?string { - return $this->referenceHelper->getCacheKey($referenceId); - } - - /** - * @param string $userId - * @return void - */ - public function invalidateUserCache(string $userId): void { - $this->referenceManager->invalidateCache($userId); - } -}