From d73c82e79120ae652b48105490726337a743ebb3 Mon Sep 17 00:00:00 2001 From: David Mudrak Date: Sat, 4 Jun 2011 11:46:31 +0200 Subject: [PATCH] MDL-22414 Getting rid of a relict method copied from restore subsystem --- backup/converter/moodle1/lib.php | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/backup/converter/moodle1/lib.php b/backup/converter/moodle1/lib.php index 180ce81753b..fdc2529b121 100644 --- a/backup/converter/moodle1/lib.php +++ b/backup/converter/moodle1/lib.php @@ -600,33 +600,6 @@ class moodle1_parser_processor extends grouped_parser_processor { } /** - * Override this method so we'll be able to skip - * dispatching some well-known chunks, like the - * ones being 100% part of subplugins stuff. Useful - * for allowing development without having all the - * possible restore subplugins defined - * - * @todo review why is this here (it is a relict) - */ - protected function postprocess_chunk($data) { - - // Iterate over all the data tags, if any of them is - // not 'subplugin_XXXX' or has value, then it's a valid chunk, - // pass it to standard (parent) processing of chunks. - foreach ($data['tags'] as $key => $value) { - if (trim($value) !== '' || strpos($key, 'subplugin_') !== 0) { - parent::postprocess_chunk($data); - return; - } - } - // Arrived here, all the tags correspond to sublplugins and are empty, - // skip the chunk, and debug_developer notice - $this->chunks--; // not counted - debugging('Missing support on restore for ' . clean_param($data['path'], PARAM_PATH) . - ' subplugin (' . implode(', ', array_keys($data['tags'])) .')', DEBUG_DEVELOPER); - } - - /** * Dispatches the data chunk to the converter class * * @param array $data the chunk of parsed data -- 2.11.4.GIT