MDL-40406 libraries: Deprecate rebuild_contexts()

This commit is contained in:
Frederic Massart
2013-07-09 15:43:02 +08:00
parent 79f6b384d4
commit cc4de415b4
4 changed files with 27 additions and 14 deletions
-14
View File
@@ -7230,20 +7230,6 @@ class context_block extends context {
// before removing devs will be warned with a debugging message first,
// then we will add error message and only after that we can remove the functions
// completely.
/**
* Rebuild all related context depth and path caches
*
* @deprecated since 2.2
* @param array $fixcontexts array of contexts, strongtyped
* @return void
*/
function rebuild_contexts(array $fixcontexts) {
foreach ($fixcontexts as $fixcontext) {
$fixcontext->reset_paths(false);
}
context_helper::build_all_paths(false);
}
/**
* Preloads all contexts relating to a course: course, modules. Block contexts
* are no longer loaded here. The contexts for all the blocks on the current