From da6e284638c51878172f4ad368f6aca01647841b Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 21 Jul 2016 11:56:11 -0700 Subject: [PATCH] Remove AutoLoader::loadClass() A poor design decision if I ever made one. Luckily nobody uses it. Change-Id: Ia6482cce2e17046346c1f8ea196f9510008faebd --- includes/AutoLoader.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index 883b8a32c1..8dc7d4094a 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -81,18 +81,6 @@ class AutoLoader { require $filename; } - /** - * Force a class to be run through the autoloader, helpful for things like - * Sanitizer that have define()s outside of their class definition. Of course - * this wouldn't be necessary if everything in MediaWiki was class-based. Sigh. - * - * @param string $class - * @return bool Return the results of class_exists() so we know if we were successful - */ - static function loadClass( $class ) { - return class_exists( $class ); - } - /** * Method to clear the protected class property $autoloadLocalClassesLower. * Used in tests. -- 2.20.1