Skip to content

Commit

Permalink
Remove redundant ::update method
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Jun 24, 2024
1 parent 8e49e5d commit 4c116b3
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/Content/MemoryContentStorageHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,6 @@ public function touch(VersionId $versionId, Language $language): void
$this->write($versionId, $language, $fields);
}

/**
* Updates the content fields of an existing version
*
* @param array<string, string> $fields Content fields
*
* @throws \Kirby\Exception\NotFoundException If the version does not exist
*/
public function update(VersionId $versionId, Language $language, array $fields): void
{
$this->ensure($versionId, $language);
$this->write($versionId, $language, $fields);
}

/**
* Writes the content fields of an existing version
*
Expand Down

0 comments on commit 4c116b3

Please sign in to comment.