From dbeb05aac9c23e9adcfc9017cb052c8ccc3cf35e Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 28 Nov 2016 00:22:31 +0100 Subject: [PATCH] Container: remove traces of old class --- library/Businessprocess/Html/Container.php | 48 ---------------------- 1 file changed, 48 deletions(-) diff --git a/library/Businessprocess/Html/Container.php b/library/Businessprocess/Html/Container.php index 6aaba22..f838721 100644 --- a/library/Businessprocess/Html/Container.php +++ b/library/Businessprocess/Html/Container.php @@ -38,51 +38,3 @@ class Container extends BaseElement return $container; } } - -class Old { - - /** - * @inheritdoc - */ - public function render() - { - return $this->renderContainerFor(parent::render()); - } - - /** - * @inheritdoc - */ - public function renderError($error) - { - // TODO: eventually add class="error" - return $this->renderContainerFor( - parent::renderError($error) - ); - } - - /** - * @param bool $render - * @return $this - */ - public function renderIfEmpty($render = true) - { - $this->renderIfEmpty = $render; - return $this; - } - - /** - * @param string $content - * @return string - */ - protected function renderContainerFor($content) - { - return sprintf( - '<%s%s>%s', - $this->tag, - $this->attributes->render(), - $content, - $this->tag - ); - } - -} \ No newline at end of file