From: Kunal Mehta Date: Sat, 10 Feb 2018 07:44:06 +0000 (-0800) Subject: registration: Remove unused ExtensionRegistry::markLoaded X-Git-Tag: 1.31.0-rc.0~625 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=77d37c2487bc4eee88038acb0f6b2bd8810f9786;p=lhc%2Fweb%2Fwiklou.git registration: Remove unused ExtensionRegistry::markLoaded This is unused, and it would make more sense for whatever wants to add credits to directly modify $this->loaded instead of incurring the overhead of an extra function call. Change-Id: Icce1a87d2dc8ce61cb05eace6e0b65d6cea4c58d --- diff --git a/includes/registration/ExtensionRegistry.php b/includes/registration/ExtensionRegistry.php index bb4c7fd02a..d14a5eeeb1 100644 --- a/includes/registration/ExtensionRegistry.php +++ b/includes/registration/ExtensionRegistry.php @@ -406,16 +406,6 @@ class ExtensionRegistry { return $this->loaded; } - /** - * Mark a thing as loaded - * - * @param string $name - * @param array $credits - */ - protected function markLoaded( $name, array $credits ) { - $this->loaded[$name] = $credits; - } - /** * Fully expand autoloader paths *