From 064e809e88c1750c4019990f1395a11f41ed8034 Mon Sep 17 00:00:00 2001 From: Daniel Ziegenberg Date: Wed, 11 Sep 2024 14:21:36 +0200 Subject: [PATCH] MDL-83095 block_tag_youtube: Final remove of deprecated methods Finale removal of block_tag_youtube::fetch_request() and block_tag_youtube::render_video_list(). The functions where never meant to be called from external, so removing them entirely. Signed-off-by: Daniel Ziegenberg --- blocks/tag_youtube/block_tag_youtube.php | 32 ------------------------ 1 file changed, 32 deletions(-) diff --git a/blocks/tag_youtube/block_tag_youtube.php b/blocks/tag_youtube/block_tag_youtube.php index 871ed164e2731..dd9466c9ee7dc 100644 --- a/blocks/tag_youtube/block_tag_youtube.php +++ b/blocks/tag_youtube/block_tag_youtube.php @@ -203,38 +203,6 @@ function get_videos_by_tag_and_category(){ return $this->render_items($response); } - /** - * Sends a request to fetch data. - * - * @see block_tag_youtube::service - * @deprecated since Moodle 2.8.8, 2.9.2 and 3.0 MDL-49085 - please do not use this function any more. - * @param string $request - * @throws coding_exception - */ - public function fetch_request($request) { - throw new coding_exception('Sorry, this function has been deprecated in Moodle 2.8.8, 2.9.2 and 3.0. Use block_tag_youtube::get_service instead.'); - - $c = new curl(array('cache' => true, 'module_cache'=>'tag_youtube')); - $c->setopt(array('CURLOPT_TIMEOUT' => 3, 'CURLOPT_CONNECTTIMEOUT' => 3)); - - $response = $c->get($request); - - $xml = new SimpleXMLElement($response); - return $this->render_video_list($xml); - } - - /** - * Renders the video list. - * - * @see block_tag_youtube::render_items - * @deprecated since Moodle 2.8.8, 2.9.2 and 3.0 MDL-49085 - please do not use this function any more. - * @param SimpleXMLElement $xml - * @throws coding_exception - */ - function render_video_list(SimpleXMLElement $xml){ - throw new coding_exception('Sorry, this function has been deprecated in Moodle 2.8.8, 2.9.2 and 3.0. Use block_tag_youtube::render_items instead.'); - } - /** * Returns an error message. *