From b3b071a05a9b54fbfd12eb5ed5b933974fef5218 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 15 Nov 2012 12:12:47 +1300 Subject: [PATCH] Removing deprecated FormField functions setTabIndex() -> setAttribute('tabindex') getTabIndex() -> getAttribute('tabindex') describe() -> setDescription() --- forms/FormField.php | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/forms/FormField.php b/forms/FormField.php index 104ede393..6f2670ba6 100644 --- a/forms/FormField.php +++ b/forms/FormField.php @@ -246,30 +246,6 @@ class FormField extends RequestHandler { return $this; } - /** - * Set tabindex HTML attribute - * (defaults to none). - * - * @deprecated 3.0 Use setAttribute("tabindex") instead - * @param int $index - */ - public function setTabIndex($index) { - Deprecation::notice('3.0', 'Use setAttribute("tabindex") instead'); - $this->setAttribute($index); - return $this; - } - - /** - * Get tabindex (if previously set) - * - * @deprecated 3.0 Use getAttribute("tabindex") instead - * @return int - */ - public function getTabIndex() { - Deprecation::notice('3.0', 'Use getAttribute("tabindex") instead'); - return $this->getAttribute('tabindex'); - } - /** * Compiles all CSS-classes. Optionally includes a "nolabel"-class * if no title was set on the formfield. @@ -797,15 +773,6 @@ class FormField extends RequestHandler { return true; } - /** - * @deprecated 3.0 Use setDescription() - */ - public function describe($description) { - Deprecation::notice('3.0', 'Use setDescription()'); - $this->setDescription($description); - return $this; - } - /** * Describe this field, provide help text for it. * By default, renders as a "title" attribute on the form field.