Skip to content

Commit

Permalink
Merge pull request #3641 from neos/task/removeNodeTreeBuilder
Browse files Browse the repository at this point in the history
TASK: Remove unused `NodeTreeBuilder`
  • Loading branch information
mhsdesign authored Oct 16, 2023
2 parents 9dfd8a9 + a2408a9 commit 565e3a8
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 254 deletions.
17 changes: 0 additions & 17 deletions Classes/Controller/BackendServiceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
use Neos\Neos\Ui\Domain\Model\Feedback\Operations\ReloadDocument;
use Neos\Neos\Ui\Domain\Model\Feedback\Operations\UpdateWorkspaceInfo;
use Neos\Neos\Ui\Domain\Model\FeedbackCollection;
use Neos\Neos\Ui\Domain\Service\NodeTreeBuilder;
use Neos\Neos\Ui\Fusion\Helper\NodeInfoHelper;
use Neos\Neos\Ui\Fusion\Helper\WorkspaceHelper;
use Neos\Neos\Ui\Service\NodeClipboard;
Expand Down Expand Up @@ -479,22 +478,6 @@ public function getWorkspaceInfoAction(): void
$this->view->assign('value', $personalWorkspaceInfo);
}

public function initializeLoadTreeAction(): void
{
$this->arguments['nodeTreeArguments']->getPropertyMappingConfiguration()->allowAllProperties();
}

/**
* Load the nodetree
*/
public function loadTreeAction(NodeTreeBuilder $nodeTreeArguments, bool $includeRoot = false): void
{
$contentRepositoryId = SiteDetectionResult::fromRequest($this->request->getHttpRequest())->contentRepositoryId;

$nodeTreeArguments->setControllerContext($this->controllerContext);
$this->view->assign('value', $nodeTreeArguments->build($contentRepositoryId, $includeRoot));
}

/**
* @throws \Neos\Flow\Mvc\Exception\NoSuchArgumentException
*/
Expand Down
225 changes: 0 additions & 225 deletions Classes/Domain/Service/NodeTreeBuilder.php

This file was deleted.

8 changes: 0 additions & 8 deletions Configuration/Routes.Service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,6 @@
'@action': 'clearClipboard'
httpMethods: ['POST']

-
name: 'Load Tree'
uriPattern: 'load-tree'
defaults:
'@controller': 'BackendService'
'@action': 'loadTree'
httpMethods: ['POST']

-
name: 'FlowQuery'
uriPattern: 'flow-query'
Expand Down
3 changes: 0 additions & 3 deletions Resources/Private/Fusion/Backend/Root.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,6 @@ backend = Neos.Fusion:Template {
clearClipboard = Neos.Fusion:UriBuilder {
action = 'clearClipboard'
}
loadTree = Neos.Fusion:UriBuilder {
action = 'loadTree'
}
flowQuery = Neos.Fusion:UriBuilder {
action = 'flowQuery'
}
Expand Down
1 change: 0 additions & 1 deletion packages/neos-ui-backend-connector/src/Endpoints/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export interface Routes {
copyNodes: string;
cutNodes: string;
clearClipboard: string;
loadTree: string;
flowQuery: string;
generateUriPathSegment: string;
getWorkspaceInfo: string;
Expand Down

0 comments on commit 565e3a8

Please sign in to comment.