From 86a91a65fe951bc7129f087f7fd0be3f6acced73 Mon Sep 17 00:00:00 2001 From: Daniel Ziegenberg Date: Thu, 13 Feb 2025 11:47:10 +0100 Subject: [PATCH] MDL-78605 core_webservice: Final removal of token_table::col_token Signed-off-by: Daniel Ziegenberg --- webservice/classes/token_table.php | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/webservice/classes/token_table.php b/webservice/classes/token_table.php index 91cf2e9fd2b..c94441d7ef1 100644 --- a/webservice/classes/token_table.php +++ b/webservice/classes/token_table.php @@ -204,27 +204,6 @@ class token_table extends \table_sql { return $content; } - /** - * Generate the token column. - * - * @param \stdClass $data Data for the current row - * @return string Content for the column - * - * @deprecated since Moodle 4.3 MDL-76656. Please do not use this function anymore. - * @todo MDL-78605 Final deprecation in Moodle 4.7. - */ - public function col_token($data) { - debugging('The function ' . __FUNCTION__ . '() is deprecated - please do not use it any more. ', DEBUG_DEVELOPER); - - global $USER; - // Hide the token if it wasn't created by the current user. - if ($data->creatorid != $USER->id) { - return \html_writer::tag('small', get_string('onlyseecreatedtokens', 'core_webservice'), ['class' => 'text-muted']); - } - - return $data->token; - } - /** * Generate the name column. *