From: defacer Date: Tue, 20 Apr 2004 08:44:06 +0000 (+0000) Subject: Removed some long-dead code and commented out some newly-dead code, now that X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6c127628a7d14318dc7f7ce3b7e36f0a9fa11b30;p=moodle.git Removed some long-dead code and commented out some newly-dead code, now that we have the blocks system. Making the file parse faster... yum! :) --- diff --git a/calendar/lib.php b/calendar/lib.php index d4acd11ee0..7658cca240 100644 --- a/calendar/lib.php +++ b/calendar/lib.php @@ -487,8 +487,6 @@ function calendar_top_controls($type, $data) { case 'frontpage': list($prevmonth, $prevyear) = calendar_sub_month($data['m'], $data['y']); list($nextmonth, $nextyear) = calendar_add_month($data['m'], $data['y']); - //$nextlink = calendar_get_link_tag('>>', 'index.php?id='.$data['id'].'&', 0, $nextmonth, $nextyear); - //$prevlink = calendar_get_link_tag('<<', 'index.php?id='.$data['id'].'&', 0, $prevmonth, $prevyear); $nextlink = calendar_get_link_tag('>>', 'index.php?', 0, $nextmonth, $nextyear); $prevlink = calendar_get_link_tag('<<', 'index.php?', 0, $prevmonth, $prevyear); $content .= ''; @@ -879,6 +877,9 @@ function calendar_overlib_html() { return $html; } +// OBSOLETE, now that we have the blocks system in place. +// Keeping it for a few revisions, just in case. +/* function calendar_print_side_blocks($forcecourse = NULL) { // WARNING: Keep in mind that using $forcecourse will override the $SESSION // filters, and thus not respect the user's filter settings. Use it sparingly. @@ -952,6 +953,7 @@ function calendar_print_side_blocks($forcecourse = NULL) { } } } +*/ function calendar_set_referring_course($courseid) { global $SESSION; @@ -1105,30 +1107,6 @@ function calendar_get_default_courses() { return $courses; } -// NOTE: This function is obsolete. But let's not kill it just yet. -/* -function calendar_print_preferences_menu() { - - // Guests have no preferences - if(isguest()) { - return; - } - - print_side_block_start(get_string('preferences', 'calendar'), '', 'mycalendar'); - echo '
'; - $prefs = array( - 'startwday' => get_string('pref_startwday', 'calendar'), - 'maxevents' => get_string('pref_maxevents', 'calendar'), - 'lookahead' => get_string('pref_lookahead', 'calendar'), - ); - foreach($prefs as $name => $description) { - echo ''; - } - echo '
'.$description.'
'.$description.'
'; - print_side_block_end(); -} -*/ - function calendar_get_tz_offset() { global $USER, $CFG; static $tzfix;