mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-40406 libraries: Deprecate cleanup_contexts()
This commit is contained in:
parent
9fdbf620a4
commit
84378a57b9
4 changed files with 15 additions and 11 deletions
|
@ -7230,17 +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.
|
||||
/**
|
||||
* Remove stale context records
|
||||
*
|
||||
* @deprecated since 2.2, use context_helper::cleanup_instances() instead
|
||||
* @return bool
|
||||
*/
|
||||
function cleanup_contexts() {
|
||||
context_helper::cleanup_instances();
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Populate context.path and context.depth where missing.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue