From 579fae4c38ed558205b7b9391b94314023043fa1 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Thu, 5 Nov 2015 20:04:21 +0000 Subject: [PATCH] API: Remove unused parameter exvariant All API calls supports the generic parameter variant. With I8a31dfd3cf2a3e8f768907084d26a77f198ccbe3 in core this parameter is documented and generates no warning anymore. Bug: T117529 Change-Id: Ic7e6f1df99c67ad4132c22503d99345611af271a --- i18n/en.json | 1 - i18n/qqq.json | 1 - includes/ApiQueryExtracts.php | 6 ------ 3 files changed, 8 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index 5e43aef..d70979a 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -10,6 +10,5 @@ "apihelp-query+extracts-param-intro": "Return only content before the first section.", "apihelp-query+extracts-param-plaintext": "Return extracts as plain text instead of limited HTML.", "apihelp-query+extracts-param-sectionformat": "How to format sections in plaintext mode:\n;plain:No formatting.\n;wiki:Wikitext-style formatting (== like this ==).\n;raw:This module's internal representation (section titles prefixed with <ASCII 1><ASCII 2><section level><ASCII 2><ASCII 1>).", - "apihelp-query+extracts-param-variant": "Convert content into this language variant.", "apihelp-query+extracts-example-1": "Get a 175-character extract" } diff --git a/i18n/qqq.json b/i18n/qqq.json index cde1e10..791975d 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -8,6 +8,5 @@ "apihelp-query+extracts-param-intro": "{{doc-apihelp-param|query+extracts|intro}}", "apihelp-query+extracts-param-plaintext": "{{doc-apihelp-param|query+extracts|plaintext}}", "apihelp-query+extracts-param-sectionformat": "{{doc-apihelp-param|query+extracts|sectionformat}}", - "apihelp-query+extracts-param-variant": "{{doc-apihelp-param|query+extracts|variant}}", "apihelp-query+extracts-example-1": "{{doc-apihelp-example|query+extracts}}" } diff --git a/includes/ApiQueryExtracts.php b/includes/ApiQueryExtracts.php index 882b30b..9dfd6c1 100644 --- a/includes/ApiQueryExtracts.php +++ b/includes/ApiQueryExtracts.php @@ -372,11 +372,6 @@ class ApiQueryExtracts extends ApiQueryBase { /** @todo Once support for MediaWiki < 1.25 is dropped, just use ApiBase::PARAM_HELP_MSG directly */ defined( 'ApiBase::PARAM_HELP_MSG' ) ? ApiBase::PARAM_HELP_MSG : '' => 'api-help-param-continue', ), - // Used implicitly by LanguageConverter - 'variant' => array( - ApiBase::PARAM_TYPE => 'string', - ApiBase::PARAM_DFLT => false, - ), ); } @@ -397,7 +392,6 @@ class ApiQueryExtracts extends ApiQueryBase { " raw - This module's internal representation (section titles prefixed with
", ), 'continue' => 'When more results are available, use this to continue', - 'variant' => 'Convert content into this language variant`', ); }