From: Chad Horohoe Date: Thu, 21 Jul 2016 18:56:11 +0000 (-0700) Subject: Remove AutoLoader::loadClass() X-Git-Tag: 1.31.0-rc.0~6242^2 X-Git-Url: http://git.cyclocoop.org/data/modifier.php?a=commitdiff_plain;h=da6e284638c51878172f4ad368f6aca01647841b;p=lhc%2Fweb%2Fwiklou.git Remove AutoLoader::loadClass() A poor design decision if I ever made one. Luckily nobody uses it. Change-Id: Ia6482cce2e17046346c1f8ea196f9510008faebd --- 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.