Remove AutoLoader::loadClass()
authorChad Horohoe <chadh@wikimedia.org>
Thu, 21 Jul 2016 18:56:11 +0000 (11:56 -0700)
committerChad Horohoe <chadh@wikimedia.org>
Fri, 22 Jul 2016 17:29:02 +0000 (10:29 -0700)
A poor design decision if I ever made one. Luckily nobody uses it.

Change-Id: Ia6482cce2e17046346c1f8ea196f9510008faebd

includes/AutoLoader.php

index 883b8a3..8dc7d40 100644 (file)
@@ -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.