Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
TamaroWalter committed Mar 15, 2024
1 parent b39a422 commit f39560d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
1 change: 0 additions & 1 deletion discussion.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
// Include config and locallib.
require_once('../../config.php');
require_once($CFG->dirroot . '/mod/moodleoverflow/locallib.php');
require_once($CFG->dirroot . '/course/modlib.php');

// Declare optional parameters.
$d = required_param('d', PARAM_INT); // The ID of the discussion.
Expand Down
28 changes: 0 additions & 28 deletions mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,6 @@
*/
class mod_moodleoverflow_mod_form extends moodleform_mod {

/**
* constructor
* @see moodleform_mod::moodleform_mod
*/
public function __construct($current, $section, $cm, $course) {
// Pre parse mod data if exists (in case not new).
if ($current && property_exists($current, 'setting')) {
$strategyoptions = json_decode($current->setting, true);
foreach ($strategyoptions as $stratkey => $strategy) {
foreach ($strategy as $key => $option) {
$current->{$this->get_settingsfield_identifier($stratkey, $key)} = $option;
}
}
}
parent::__construct($current, $section, $cm, $course);
}
/**
* Defines forms elements.
*/
Expand Down Expand Up @@ -265,16 +249,4 @@ public function data_postprocessing($data) {
$data->coursewidereputation = false;
}
}

/**
* Set
* @param $default_values
* @return void
*/
public function data_preprocessing(&$default_values) {
parent::data_preprocessing($default_values);

// Fill the anonymous and the grade options with the values that were set.

}
}

0 comments on commit f39560d

Please sign in to comment.