Skip to content

Commit a20da03

Browse files
Merge pull request #361 from daniellienert/task/remove-context-path-calc2
TASK: Remove context path calculation which is moved
2 parents 12164bc + 09ed1a0 commit a20da03

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

Classes/Indexer/NodeIndexer.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,6 @@ public function indexNode(NodeInterface $node, $targetWorkspaceName = null): voi
237237
}
238238

239239
$indexer = function (NodeInterface $node, $targetWorkspaceName = null) {
240-
$contextPath = $node->getContextPath();
241-
242240
if ($this->settings['indexAllWorkspaces'] === false) {
243241
// we are only supposed to index the live workspace.
244242
// We need to check the workspace at two occasions; checking the
@@ -252,10 +250,6 @@ public function indexNode(NodeInterface $node, $targetWorkspaceName = null): voi
252250
}
253251
}
254252

255-
if ($targetWorkspaceName !== null) {
256-
$contextPath = (string)(new TargetContextPath($node, (string)$targetWorkspaceName, $contextPath));
257-
}
258-
259253
$documentIdentifier = $this->calculateDocumentIdentifier($node, $targetWorkspaceName);
260254
$nodeType = $node->getNodeType();
261255

0 commit comments

Comments
 (0)