Removed unused function

This commit is contained in:
moodler 2003-05-04 08:36:32 +00:00
parent b2a47e2052
commit 59345eb4ec

View File

@ -532,20 +532,6 @@ function course_set_display($courseid, $display=0) {
return $USER->display[$courseid] = $display; // Note: = not ==
}
function course_section_visible($courseid, $section) {
/// Returns true/false depending on section visibility
/// Can be expanded in the future to handle more complex
/// course displays
global $USER;
if (empty($USER->display[$courseid])) {
return true;
}
return $USER->display[$courseid] == $section;
}
function set_section_visible($courseid, $sectionnumber, $visibility) {
/// For a given course section, markes it visible or hidden,
/// and does the same for every activity in that section