diff --git a/CHANGELOG.md b/CHANGELOG.md index 37b99216f6..9f414e027f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip ## [Unreleased][unreleased] +## Removed + - Removed protected function Context::addChild() + - It was a duplicate of the Context::addBlock() method + ## [0.11.3] - 2015-09-25 ## Fixed - Reset container after closing containing lists (#183; jgm/commonmark.js#67) diff --git a/src/Context.php b/src/Context.php index 8c348b994c..e2f0579a07 100644 --- a/src/Context.php +++ b/src/Context.php @@ -86,26 +86,6 @@ public function setNextLine($line) $this->line = $line; } - /** - * @param AbstractBlock $newBlock - * - * @return AbstractBlock - */ - protected function addChild(AbstractBlock $newBlock) - { - $this->getBlockCloser()->closeUnmatchedBlocks(); - $newBlock->setStartLine($this->lineNumber); - while (!$this->tip->canContain($newBlock)) { - $this->tip->finalize($this); - } - - $this->tip->appendChild($newBlock); - $this->tip = $newBlock; - $this->container = $newBlock; - - return $newBlock; - } - /** * @return Document */