Skip to content

Commit

Permalink
Remove require for file that no longer exists in 4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Sep 30, 2024
1 parent 33e0d30 commit ed09041
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions classes/cache_config_writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

defined('MOODLE_INTERNAL') || die();
// Manually require locallib as it isn't autoloaded.
require_once(__DIR__.'/../../../../cache/locallib.php');

/**
* This config_writer is readonly, and provides public access to some protected methods.
Expand Down
2 changes: 0 additions & 2 deletions classes/cache_factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public function create_config_instance($writer = false) {

// Check if this is a PHPUnit test and redirect to the phpunit config classes if it is.
if ($testing) {
require_once($CFG->dirroot.'/cache/locallib.php');
require_once($CFG->dirroot.'/cache/tests/fixtures/lib.php');
// We have just a single class for PHP unit tests. We don't care enough about its
// performance to do otherwise and having a single method allows us to inject things into it
Expand All @@ -49,7 +48,6 @@ public function create_config_instance($writer = false) {
}

if ($writer) {
require_once($CFG->dirroot.'/cache/locallib.php');
if (!$testing) {
$class .= '_writer';
}
Expand Down

0 comments on commit ed09041

Please sign in to comment.