Follow-up ed76b6736: Also remove the now-unused $mExtStyles
authorJames D. Forrester <jforrester@wikimedia.org>
Mon, 5 Feb 2018 17:37:41 +0000 (09:37 -0800)
committerJforrester <jforrester@wikimedia.org>
Mon, 5 Feb 2018 17:38:52 +0000 (17:38 +0000)
Change-Id: I7622ba15b03df97213acd82e4a3fa78267a30d55

RELEASE-NOTES-1.31
includes/OutputPage.php

index b46d3d6..23f1e44 100644 (file)
@@ -211,6 +211,8 @@ changes to languages because of Phabricator reports.
   * OutputPage::setSquidMaxage(); deprecated in 1.27
   * OutputPage::readOnlyPage(); deprecated in 1.25
   * OutputPage::rateLimited(); deprecated in 1.25
+  * Additionally, the protected OutputPage::$mExtStyles array, only accessed through
+    the above and with no known uses, was removed.
 * The no-op method Skin::showIPinHeader(), deprecated in 1.27, was removed.
 * \ObjectFactory (no namespace) is deprecated, the namespaced \Wikimedia\ObjectFactory
   from the wikimedia/object-factory library should be used instead.
index 5fa66e8..e6345ba 100644 (file)
@@ -52,12 +52,6 @@ class OutputPage extends ContextSource {
        /** @var bool */
        protected $mCanonicalUrl = false;
 
-       /**
-        * @var array Additional stylesheets. Looks like this is for extensions.
-        *   Might be replaced by ResourceLoader.
-        */
-       protected $mExtStyles = [];
-
        /**
         * @var string Should be private - has getter and setter. Contains
         *   the HTML title */
@@ -3643,12 +3637,6 @@ class OutputPage extends ContextSource {
        public function buildCssLinksArray() {
                $links = [];
 
-               // Add any extension CSS
-               foreach ( $this->mExtStyles as $url ) {
-                       $this->addStyle( $url );
-               }
-               $this->mExtStyles = [];
-
                foreach ( $this->styles as $file => $options ) {
                        $link = $this->styleLink( $file, $options );
                        if ( $link ) {