Remove getFormFields(), onSubmit() and onSuccess() from FormlessAction
authorwithoutaname <drevitchi@gmail.com>
Sun, 13 Jul 2014 07:19:43 +0000 (00:19 -0700)
committerWithoutaname <drevitchi@gmail.com>
Tue, 15 Jul 2014 23:28:18 +0000 (23:28 +0000)
Leftovers from the FormAction class which has since split off

Change-Id: I519566205bd39f4c511b0418a0564e9ef1eec6d0

RELEASE-NOTES-1.24
includes/actions/FormlessAction.php

index 8011044..dc946e4 100644 (file)
@@ -243,6 +243,8 @@ changes to languages because of Bugzilla reports.
   PHP compiler called hphpc. (deprecated since 1.22)
 * ApiResult::enableSizeCheck() and disableSizeCheck() are now obsolete.
 * Removed ResourceLoaderGetStartupModules hook. (deprecated since 1.23)
+* Removed getFormFields(), onSubmit() and onSuccess() from FormlessAction, as
+  these were meant specifically for FormAction instead.
 
 ==== Renamed classes ====
 * CLDRPluralRuleConverter_Expression to CLDRPluralRuleConverterExpression
index 0039838..7b3a714 100644 (file)
@@ -35,29 +35,6 @@ abstract class FormlessAction extends Action {
         */
        abstract public function onView();
 
-       /**
-        * We don't want an HTMLForm
-        * @return bool
-        */
-       protected function getFormFields() {
-               return false;
-       }
-
-       /**
-        * @param array $data
-        * @return bool
-        */
-       public function onSubmit( $data ) {
-               return false;
-       }
-
-       /**
-        * @return bool
-        */
-       public function onSuccess() {
-               return false;
-       }
-
        public function show() {
                $this->setHeaders();