]> git.mjollnir.org Git - moodle.git/commitdiff
Removed unused function
authormoodler <moodler>
Sun, 4 May 2003 08:36:32 +0000 (08:36 +0000)
committermoodler <moodler>
Sun, 4 May 2003 08:36:32 +0000 (08:36 +0000)
course/lib.php

index 17e211ad17331e13b53c2e049a83b3a3179a96ca..ba89d49d640a7327420b777e091085dc33df7a77 100644 (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