Skip to content

Commit 78d7570

Browse files
committed
Remove NavigationMenu dropdown accessor methods
These do not seem to be used outside of tests and don't offer anything useful
1 parent a62664b commit 78d7570

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

packages/framework/src/Framework/Features/Navigation/NavigationMenu.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Hyde\Framework\Features\Navigation;
66

7-
use Hyde\Facades\Config;
87
use Illuminate\Support\Collection;
98
use Illuminate\Contracts\Support\Arrayable;
109

@@ -23,33 +22,4 @@ public function getItems(): Collection
2322
{
2423
return $this->items;
2524
}
26-
27-
/**
28-
* @experimental These do not seem to be used outside of tests and may be removed
29-
*
30-
* @deprecated If kept, they should be renamed to be more generic.
31-
*/
32-
public function legacy_hasDropdowns(): bool
33-
{
34-
return $this->dropdownsEnabled() && count($this->getDropdowns()) >= 1;
35-
}
36-
37-
/**
38-
* @experimental These do not seem to be used outside of tests and may be removed
39-
*
40-
* @deprecated If kept, they should be renamed to be more generic.
41-
*
42-
* @return array<string, DropdownNavItem>
43-
*/
44-
public function legacy_getDropdowns(): array
45-
{
46-
return $this->items->filter(function (NavItem $item): bool {
47-
return $item instanceof DropdownNavItem;
48-
})->values()->all();
49-
}
50-
51-
protected function dropdownsEnabled(): bool
52-
{
53-
return Config::getString('hyde.navigation.subdirectories', 'hidden') === 'dropdown';
54-
}
5525
}

0 commit comments

Comments
 (0)