Skip to content

Commit

Permalink
removed stuff deprecated in 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 18, 2015
1 parent 06c51d9 commit 164ee7d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
8 changes: 0 additions & 8 deletions src/Forms/Controls/MultiSelectBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

}
9 changes: 0 additions & 9 deletions src/Forms/Controls/RadioList.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,6 @@ public function getItemLabelPrototype()
*/
public function getControl($key = NULL)
{

This comment has been minimized.

Copy link
@xificurk

xificurk Feb 18, 2015

Contributor

And what about the argument?

This comment has been minimized.

Copy link
@dg

dg Feb 18, 2015

Author Member

Good point :-)

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();
Expand Down Expand Up @@ -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);
}

Expand Down
8 changes: 0 additions & 8 deletions src/Forms/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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**/


Expand Down

0 comments on commit 164ee7d

Please sign in to comment.