diff --git a/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php b/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php index 06530bb84a9..e92af8c18e4 100644 --- a/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php +++ b/packages/framework/src/Framework/Features/Documentation/DocumentationSearchPage.php @@ -46,12 +46,6 @@ public static function enabled(): bool return Config::getBool('docs.create_search_page', true) && ! Hyde::routes()->has(self::routeKey()); } - /** @deprecated Can be removed by https://github.com/hydephp/develop/pull/1498 */ - public static function routeKey(): string - { - return ltrim(DocumentationPage::outputDirectory().'/search'); - } - /** @experimental Fixes type issue {@see https://github.com/hydephp/develop/commit/37f7046251b8c0514b8d8ef821de4ef3d35bbac8#commitcomment-135026537} */ protected function makeDocument(): SemanticDocumentationArticle { diff --git a/packages/framework/tests/Feature/DocumentationSearchPageTest.php b/packages/framework/tests/Feature/DocumentationSearchPageTest.php index 22a9b53ed1c..ec91f318044 100644 --- a/packages/framework/tests/Feature/DocumentationSearchPageTest.php +++ b/packages/framework/tests/Feature/DocumentationSearchPageTest.php @@ -59,15 +59,4 @@ public function testEnabledIsFalseWhenDisabledAndRouteExists() Hyde::routes()->put('docs/search', new InMemoryPage('docs/search')); $this->assertFalse(DocumentationSearchPage::enabled()); } - - public function testStaticRouteKeyHelper() - { - $this->assertSame('docs/search', DocumentationSearchPage::routeKey()); - } - - public function testStaticRouteKeyHelperWithCustomOutputDirectory() - { - DocumentationPage::setOutputDirectory('foo'); - $this->assertSame('foo/search', DocumentationSearchPage::routeKey()); - } }