From 2ea413ff18215bd3c2a18510ea282e70cb6e1d7d Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sat, 26 Feb 2022 18:23:17 +0000 Subject: [PATCH] Cody tidy in CRM_Core_State --- CRM/Core/State.php | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/CRM/Core/State.php b/CRM/Core/State.php index 293224a21f1c..26c56507979f 100644 --- a/CRM/Core/State.php +++ b/CRM/Core/State.php @@ -83,14 +83,10 @@ public function __construct($name, $type, $back, $next, &$stateMachine) { $this->_stateMachine = &$stateMachine; } - public function debugPrint() { - CRM_Core_Error::debug("{$this->_name}, {$this->_type}", "{$this->_back}, {$this->_next}"); - } - /** * Given an CRM Form, jump to the previous page. * - * @param CRM_Core_Page $page + * @param CRM_Core_Form $page * * @return mixed * does a jump to the back state @@ -108,7 +104,7 @@ public function handleBackState(&$page) { /** * Given an CRM Form, jump to the next page. * - * @param CRM_Core_Page $page + * @param CRM_Core_Form $page * * @return mixed * Does a jump to the nextstate @@ -123,23 +119,6 @@ public function handleNextState(&$page) { } } - /** - * Determine the name of the next state. - * - * This is useful when we want to display the navigation labels or potential path. - * - * @return string - */ - public function getNextState() { - if ($this->_type & self::FINISH) { - return NULL; - } - else { - $next = &$page->controller->getPage($this->_next); - return $next; - } - } - /** * Mark this page as valid for the QFC framework. *