From 164ee7d40318d577d082df11d2ab9864ea54e295 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Wed, 18 Feb 2015 02:23:28 +0100 Subject: [PATCH] removed stuff deprecated in 2.1 --- src/Forms/Controls/MultiSelectBox.php | 8 -------- src/Forms/Controls/RadioList.php | 9 --------- src/Forms/Form.php | 8 -------- 3 files changed, 25 deletions(-) diff --git a/src/Forms/Controls/MultiSelectBox.php b/src/Forms/Controls/MultiSelectBox.php index d6b465f35..de60df419 100644 --- a/src/Forms/Controls/MultiSelectBox.php +++ b/src/Forms/Controls/MultiSelectBox.php @@ -66,12 +66,4 @@ public function getControl() )->addAttributes(parent::getControl()->attrs)->multiple(TRUE); } - - /** @deprecated */ - function getSelectedItem() - { - trigger_error(__METHOD__ . '(TRUE) is deprecated; use getSelectedItems() instead.', E_USER_DEPRECATED); - return $this->getSelectedItems(); - } - } diff --git a/src/Forms/Controls/RadioList.php b/src/Forms/Controls/RadioList.php index 8d8f476d4..330e1df04 100644 --- a/src/Forms/Controls/RadioList.php +++ b/src/Forms/Controls/RadioList.php @@ -95,11 +95,6 @@ public function getItemLabelPrototype() */ public function getControl($key = NULL) { - if ($key !== NULL) { - trigger_error(sprintf('Partial %s() is deprecated; use getControlPart() instead.', __METHOD__), E_USER_DEPRECATED); - return $this->getControlPart($key); - } - $input = parent::getControl(); $items = $this->getItems(); $ids = array(); @@ -132,10 +127,6 @@ public function getControl($key = NULL) */ public function getLabel($caption = NULL, $key = NULL) { - if ($key !== NULL) { - trigger_error(sprintf('Partial %s() is deprecated; use getLabelPart() instead.', __METHOD__), E_USER_DEPRECATED); - return $this->getLabelPart($key); - } return parent::getLabel($caption)->for(NULL); } diff --git a/src/Forms/Form.php b/src/Forms/Form.php index 3dd94b167..17444719c 100644 --- a/src/Forms/Form.php +++ b/src/Forms/Form.php @@ -536,14 +536,6 @@ public function getOwnErrors() } - /** @deprecated */ - public function getAllErrors() - { - trigger_error(__METHOD__ . '() is deprecated; use getErrors() instead.', E_USER_DEPRECATED); - return $this->getErrors(); - } - - /********************* rendering ****************d*g**/