From e9a235e444c88ab4d057eb789dd7428809401687 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Thu, 2 Jan 2014 11:19:59 +0800 Subject: [PATCH] MDL-43531 Course: Remove deprecated functions from dnduploadlib These functions were deprecated in 2.5 and are due for removal in 2.7. Removing as per deprecation policy. --- course/dnduploadlib.php | 48 ----------------------------------------- 1 file changed, 48 deletions(-) diff --git a/course/dnduploadlib.php b/course/dnduploadlib.php index 3fa6bb26fd7..aa4c86aa583 100644 --- a/course/dnduploadlib.php +++ b/course/dnduploadlib.php @@ -162,22 +162,6 @@ class dndupload_handler { } } - /** - * No external code should be directly adding new types - they should be added via a 'addtypes' array, returned - * by MODNAME_dndupload_register. - * - * @deprecated deprecated since Moodle 2.5 - * @param string $identifier - * @param array $datatransfertypes - * @param string $addmessage - * @param string $namemessage - * @param int $priority - */ - public function add_type($identifier, $datatransfertypes, $addmessage, $namemessage, $priority=100) { - debugging('add_type() is deprecated. Plugins should be using the MODNAME_dndupload_register callback.'); - $this->register_type($identifier, $datatransfertypes, $addmessage, $namemessage, '', $priority); - } - /** * Used to add a new mime type that can be drag and dropped onto a * course displayed in a browser window @@ -210,23 +194,6 @@ class dndupload_handler { $this->types[$identifier] = $add; } - /** - * No external code should be directly adding new type handlers - they should be added via a 'addtypes' array, returned - * by MODNAME_dndupload_register. - * - * @deprecated deprecated since Moodle 2.5 - * @param string $type The name of the type (as declared in add_type) - * @param string $module The name of the module to handle this type - * @param string $message The message to show the user if more than one handler is registered - * for a type and the user needs to make a choice between them - * @param bool $noname If true, the 'name' dialog should be disabled in the pop-up. - * @throws coding_exception - */ - public function add_type_handler($type, $module, $message, $noname) { - debugging('add_type_handler() is deprecated. Plugins should be using the MODNAME_dndupload_register callback.'); - $this->register_type_handler($type, $module, $message, $noname); - } - /** * Used to declare that a particular module will handle a particular type * of dropped data @@ -252,21 +219,6 @@ class dndupload_handler { $this->types[$type]->handlers[] = $add; } - /** - * No external code should be directly adding new file handlers - they should be added via a 'files' array, returned - * by MODNAME_dndupload_register. - * - * @deprecated deprecated since Moodle 2.5 - * @param string $extension The file extension to handle ('*' for all types) - * @param string $module The name of the module to handle this type - * @param string $message The message to show the user if more than one handler is registered - * for a type and the user needs to make a choice between them - */ - public function add_file_handler($extension, $module, $message) { - debugging('add_file_handler() is deprecated. Plugins should be using the MODNAME_dndupload_register callback.'); - $this->register_file_handler($extension, $module, $message); - } - /** * Used to declare that a particular module will handle a particular type * of dropped file