X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fapi%2FApiFormatBase.php;h=be683105ffb442420bc5e2a0ff6fc07638dffed4;hb=42e257a1a28c3b381eb1f6002e4b6417fc85d8a4;hp=17966afa0d76e8dd25e8ba6ba32f5aa49ececca1;hpb=73d13883bfe0114c2451fb2ec31e203ec93efdd9;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFormatBase.php b/includes/api/ApiFormatBase.php index 17966afa0d..be683105ff 100644 --- a/includes/api/ApiFormatBase.php +++ b/includes/api/ApiFormatBase.php @@ -245,18 +245,6 @@ abstract class ApiFormatBase extends ApiBase { return 'https://www.mediawiki.org/wiki/API:Data_formats'; } - /** - * To avoid code duplication with the deprecation of dbg, txt - * and yaml, this method is added to do the necessary work. It should be - * removed when those deprecated formats are removed. - */ - protected function markDeprecated() { - $fm = $this->getIsHtml() ? 'fm' : ''; - $name = $this->getModuleName(); - $this->logFeatureUsage( "format=$name" ); - $this->setWarning( "format=$name has been deprecated. Please use format=json$fm instead." ); - } - /************************************************************************//** * @name Deprecated * @{