Skip to content

Commit

Permalink
MDL-83751 check: remove non-functional result class method.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulholden committed Dec 18, 2024
1 parent ce0193f commit ec454be
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions lib/classes/check/result.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,17 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* A check result class
*
* @package core
* @category check
* @copyright 2020 Brendan Heywood <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace core\check;

defined('MOODLE_INTERNAL') || die();

/**
* A check object returns a result object
*
* Most checks can use this an instance of this directly but if you have a
* 'details' which is computationally expensive then extend this and overide
* the get_details() method so that it is only called when it will be needed.
*
* @package core
* @category check
* @copyright 2020 Brendan Heywood <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down Expand Up @@ -109,20 +101,6 @@ class result implements \renderable {
*/
protected $details = '';

/**
* Get the check reference label
*
* @return string must be globally unique
*/
public function get_ref(): string {
$ref = $this->get_component();
if (!empty($ref)) {
$ref .= '_';
}
$ref .= $this->get_id();
return $ref;
}

/**
* Constructor
*
Expand Down

0 comments on commit ec454be

Please sign in to comment.