From 110020d1b61e566223a833db8260fcfdac1f1767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Mu=CC=88ller?= Date: Fri, 1 Nov 2024 13:37:17 +0100 Subject: [PATCH] Remove unused rebaseEmpty method --- .../Feature/WorkspaceCommandHandler.php | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCommandHandler.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCommandHandler.php index 4d883261b2a..1fe20759c08 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCommandHandler.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspaceCommandHandler.php @@ -273,33 +273,6 @@ static function ($handle) use ($rebaseableCommands): void { yield $this->removeContentStream($workspace->currentContentStreamId, $commandHandlingDependencies); } - private function rebaseWorkspaceWithoutChanges( - Workspace $workspace, - Workspace $baseWorkspace, - ContentStreamId $newContentStreamId, - CommandHandlingDependencies $commandHandlingDependencies, - ): \Generator { - yield $this->forkContentStream( - $newContentStreamId, - $baseWorkspace->currentContentStreamId, - $commandHandlingDependencies - ); - - yield new EventsToPublish( - WorkspaceEventStreamName::fromWorkspaceName($workspace->workspaceName)->getEventStreamName(), - Events::with( - new WorkspaceWasRebased( - $workspace->workspaceName, - $newContentStreamId, - $workspace->currentContentStreamId, - ), - ), - ExpectedVersion::ANY() - ); - - yield $this->removeContentStream($workspace->currentContentStreamId, $commandHandlingDependencies); - } - /** * Copy all events from the passed event stream which implement the {@see PublishableToOtherContentStreamsInterface} */