Drop JsonContent->getJsonData(), deprecated in 1.25 and unused
authorJames D. Forrester <jforrester@wikimedia.org>
Sat, 9 Feb 2019 01:36:01 +0000 (17:36 -0800)
committerReedy <reedy@wikimedia.org>
Sat, 9 Feb 2019 07:50:28 +0000 (07:50 +0000)
Change-Id: I2cac3a1d2cda799c302ca2364fb91916c3240c11

RELEASE-NOTES-1.33
includes/content/JsonContent.php

index ee4f215..12f915b 100644 (file)
@@ -217,6 +217,8 @@ because of Phabricator reports.
   use MediaWikiServices::getInstance()->getEventRelayerGroup() directly.
 * LinkCache->addLink(), deprecated in 1.27, has been removed. It is thought to
   be unused, and is distinct from OutputPage->addLink(), which remains.
+* JsonContent->getJsonData(), deprecated in 1.25, has been removed. Instead, use
+  JsonContent->getData().
 
 === Deprecations in 1.33 ===
 * The configuration option $wgUseESI has been deprecated, and is expected
index 0f8a9a9..2cd1fb3 100644 (file)
@@ -28,17 +28,6 @@ class JsonContent extends TextContent {
                parent::__construct( $text, $modelId );
        }
 
-       /**
-        * Decodes the JSON into a PHP associative array.
-        *
-        * @deprecated since 1.25 Use getData instead.
-        * @return array|null
-        */
-       public function getJsonData() {
-               wfDeprecated( __METHOD__, '1.25' );
-               return FormatJson::decode( $this->getText(), true );
-       }
-
        /**
         * Decodes the JSON string.
         *