Permalink
Browse files

MDL-31023 libraries: removed deprecated function and classes from pag…

…elib.php
  • Loading branch information...
1 parent 3294034 commit afb92f1b9eead59fedf8210ee68709d1488ab1cd Rajesh Taneja committed May 14, 2012
Showing with 1 addition and 457 deletions.
  1. +0 −1 lang/en/debug.php
  2. +0 −29 lib/blocklib.php
  3. +0 −14 lib/deprecatedlib.php
  4. +1 −413 lib/pagelib.php
View
@@ -41,7 +41,6 @@
$string['modulenotexist'] = '{$a} module doesn\'t exist';
$string['morethanonerecordinfetch'] = 'Found more than one record in fetch() !';
$string['mustbeoveride'] = 'Abstract {$a} method must be overridden.';
-$string['noactivityname'] = 'Page object derived from page_generic_activity but did not define $this->activityname';
$string['noadminrole'] = 'No admin role could be found';
$string['noblocks'] = 'No blocks installed!';
$string['nocate'] = 'No categories!';
View
@@ -1961,35 +1961,6 @@ function blocks_delete_all_on_page($pagetype, $pageid) {
}
/**
- * Dispite what this function is called, it seems to be mostly used to populate
- * the default blocks when a new course (or whatever) is created.
- *
- * @deprecated since 2.0
- *
- * @param object $page the page to add default blocks to.
- * @return boolean success or failure.
- */
-function blocks_repopulate_page($page) {
- global $CFG;
-
- debugging('Call to deprecated function blocks_repopulate_page. ' .
- 'Use a more specific method like blocks_add_default_course_blocks, ' .
- 'or just call $PAGE->blocks->add_blocks()', DEBUG_DEVELOPER);
-
- /// If the site override has been defined, it is the only valid one.
- if (!empty($CFG->defaultblocks_override)) {
- $blocknames = $CFG->defaultblocks_override;
- } else {
- $blocknames = $page->blocks_get_default();
- }
-
- $blocks = blocks_parse_default_blocks_list($blocknames);
- $page->blocks->add_blocks($blocks);
-
- return true;
-}
-
-/**
* Get the block record for a particular blockid - that is, a particular type os block.
*
* @param $int blockid block type id. If null, an array of all block types is returned.
View
@@ -926,20 +926,6 @@ function current_theme() {
}
/**
- * @todo Remove this deprecated function when no longer used
- * @deprecated since Moodle 2.0 - use $PAGE->pagetype instead of the .
- *
- * @param string $getid used to return $PAGE->pagetype.
- * @param string $getclass used to return $PAGE->legacyclass.
- */
-function page_id_and_class(&$getid, &$getclass) {
- global $PAGE;
- debugging('Call to deprecated function page_id_and_class. Please use $PAGE->pagetype instead.', DEBUG_DEVELOPER);
- $getid = $PAGE->pagetype;
- $getclass = $PAGE->legacyclass;
-}
-
-/**
* Prints some red text using echo
*
* @deprecated
Oops, something went wrong.

0 comments on commit afb92f1

Please sign in to comment.