MDL-29504 plugin_callback() - delete some unused code

This commit is contained in:
Eloy Lafuente (stronk7)
2011-09-27 02:03:50 +02:00
parent 01b4e00161
commit 432e182654
-3
View File
@@ -7552,7 +7552,6 @@ function get_list_of_plugins($directory='mod', $exclude='', $basedir='') {
* @return mixed
*/
function plugin_callback($type, $name, $feature, $action, $options = null, $default=null) {
global $CFG;
$component = clean_param($type . '_' . $name, PARAM_COMPONENT);
if (empty($component)) {
@@ -7562,8 +7561,6 @@ function plugin_callback($type, $name, $feature, $action, $options = null, $defa
list($type, $name) = normalize_component($component);
$component = $type . '_' . $name;
$function = null;
$function = $component.'_'.$feature.'_'.$action;
$oldfunction = $name.'_'.$feature.'_'.$action;