Skip to content

Commit

Permalink
codechecker fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vidalia committed May 21, 2024
1 parent 3563dda commit 0091f5a
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions backup/moodle2/backup_format_cards_plugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

use format_cards\section_break;

defined('MOODLE_INTERNAL') || die();

require_once(__DIR__ . "/../../lib.php");
Expand Down Expand Up @@ -86,24 +84,4 @@ protected function define_section_plugin_structure(): backup_plugin_element {
return $parent;
}

/**
* Adds section break data to the course structure
*
* @return backup_plugin_element
* @throws base_element_struct_exception
*/
/*protected function define_course_plugin_structure(): backup_plugin_element {
$plugin = $this->get_plugin_element(null, '/course/format', 'cards');
$pluginwrapper = new backup_nested_element($this->get_recommended_name());
$sectionbreakswrapper = new backup_nested_element('sectionbreak', [ 'section' ], [ 'name' ]);
$sectionbreakswrapper->set_source_table(section_break::TABLE, [ 'courseid' => backup::VAR_COURSEID ]);
$pluginwrapper->add_child($sectionbreakswrapper);
$plugin->add_child($pluginwrapper);
return $plugin;
}*/

}

0 comments on commit 0091f5a

Please sign in to comment.