Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK: Remove unused NodeTreeBuilder #3641

Merged
merged 3 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading