diff --git a/Neos.ContentRepository.Core/Classes/Projection/Workspace/WorkspaceFinder.php b/Neos.ContentRepository.Core/Classes/Projection/Workspace/WorkspaceFinder.php index db8414b0875..a5f49004cd2 100644 --- a/Neos.ContentRepository.Core/Classes/Projection/Workspace/WorkspaceFinder.php +++ b/Neos.ContentRepository.Core/Classes/Projection/Workspace/WorkspaceFinder.php @@ -91,32 +91,6 @@ public function findOneByCurrentContentStreamId( return $workspace; } - /** - * @return array - */ - public function findByPrefix(WorkspaceName $prefix): array - { - $result = []; - - $connection = $this->client->getConnection(); - $workspaceRows = $connection->executeQuery( - ' - SELECT * FROM ' . $this->tableName . ' - WHERE workspaceName LIKE :workspaceNameLike - ', - [ - 'workspaceNameLike' => $prefix->value . '%' - ] - )->fetchAllAssociative(); - - foreach ($workspaceRows as $workspaceRow) { - $similarlyNamedWorkspace = $this->createWorkspaceFromDatabaseRow($workspaceRow); - $result[$similarlyNamedWorkspace->workspaceName->value] = $similarlyNamedWorkspace; - } - - return $result; - } - /** * @return array * @throws \Doctrine\DBAL\DBALException