From: moodler Date: Tue, 26 Aug 2003 12:54:50 +0000 (+0000) Subject: Removed useless function X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1ca022607126b7afa9065a41e0d3f446b662b013;p=moodle.git Removed useless function --- diff --git a/lib/weblib.php b/lib/weblib.php index b8bb95dbc3..ad5282d048 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1180,19 +1180,6 @@ function make_table($table) { return $output; } - -function print_editing_switch($courseid) { - global $CFG, $USER; - - if (isteacheredit($courseid)) { - if ($USER->editing) { - echo "wwwroot/course/view.php?id=$courseid&edit=off\">turn editing off"; - } else { - echo "wwwroot/course/view.php?id=$courseid&edit=on\">turn editing on"; - } - } -} - function print_textarea($richedit, $rows, $cols, $width, $height, $name, $value="") { /// Prints a richtext field or a normal textarea global $CFG, $THEME;