Skip to content

Commit

Permalink
Remove unused rebaseEmpty method
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsunet committed Nov 1, 2024
1 parent a46c248 commit 110020d
Showing 1 changed file with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
*/
Expand Down

0 comments on commit 110020d

Please sign in to comment.