jenkins-bot has submitted this change and it was merged.

Change subject: API: Remove unused parameter exvariant
......................................................................


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
---
M i18n/en.json
M i18n/qqq.json
M includes/ApiQueryExtracts.php
3 files changed, 0 insertions(+), 8 deletions(-)

Approvals:
  MaxSem: Looks good to me, approved
  Siebrand: Looks good to me, but someone else must approve
  Jdlrobson: Looks good to me, but someone else must approve
  jenkins-bot: Verified



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 @@
                                /** @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 @@
                                " raw - This module's internal representation 
(section titles prefixed with <ASCII 1><ASCII 2><section level><ASCII 2><ASCII 
1>",
                        ),
                        'continue' => 'When more results are available, use 
this to continue',
-                       'variant' => 'Convert content into this language 
variant`',
                );
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/251324
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic7e6f1df99c67ad4132c22503d99345611af271a
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/TextExtracts
Gerrit-Branch: master
Gerrit-Owner: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com>
Gerrit-Reviewer: Anomie <bjor...@wikimedia.org>
Gerrit-Reviewer: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com>
Gerrit-Reviewer: Jdlrobson <jrob...@wikimedia.org>
Gerrit-Reviewer: MaxSem <maxsem.w...@gmail.com>
Gerrit-Reviewer: Reedy <re...@wikimedia.org>
Gerrit-Reviewer: Siebrand <siebr...@kitano.nl>
Gerrit-Reviewer: Waldir <wal...@email.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to