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

Change subject: Remove pre-1.25 API compatibility code
......................................................................


Remove pre-1.25 API compatibility code

Since this extension uses extension.json, it already requires 1.25+ so
no need to keep the old code around.

Change-Id: I21fbef2edb2f4bfcb029919ea5e96ae62e6da5bf
Depends-On: I13d0e402fa676bc27c345e8ac12f363ebc627f6a
---
M api/ApiCentralNoticeLogs.php
M api/ApiCentralNoticeQueryCampaign.php
2 files changed, 0 insertions(+), 61 deletions(-)

Approvals:
  Ejegg: Looks good to me, approved
  Jforrester: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/api/ApiCentralNoticeLogs.php b/api/ApiCentralNoticeLogs.php
index e9b1532..be01a08 100644
--- a/api/ApiCentralNoticeLogs.php
+++ b/api/ApiCentralNoticeLogs.php
@@ -54,39 +54,6 @@
        }
 
        /**
-        * @deprecated since MediaWiki core 1.25
-        */
-       public function getParamDescription() {
-               $params = array();
-
-               $params['campaign'] = "Campaign name (optional). Separate 
multiple values with a \"|\" (vertical bar).";
-               $params['start'] = "Start time of range (optional).";
-               $params['end'] = "End time of range (optional).";
-               $params['user'] = "Username (optional)";
-               $params['limit'] = "Maximum rows to return (optional)";
-               $params['offset'] = "Offset into result set (optional)";
-
-               return $params;
-       }
-
-       /**
-        * @deprecated since MediaWiki core 1.25
-        */
-       public function getDescription() {
-               return 'Get a log of campaign configuration changes.';
-       }
-
-       /**
-        * Example API calls.
-        *
-        * @deprecated since MediaWiki core 1.25
-        * @return array|bool|string
-        */
-       public function getExamples() {
-               return 
"api.php?action=query&list=centralnoticelogs&format=json";
-       }
-
-       /**
         * @see ApiBase::getExamplesMessages()
         */
        protected function getExamplesMessages() {
diff --git a/api/ApiCentralNoticeQueryCampaign.php 
b/api/ApiCentralNoticeQueryCampaign.php
index 8e46aff..0ad0165 100644
--- a/api/ApiCentralNoticeQueryCampaign.php
+++ b/api/ApiCentralNoticeQueryCampaign.php
@@ -47,34 +47,6 @@
        }
 
        /**
-        * @deprecated since MediaWiki core 1.25
-        */
-       public function getParamDescription() {
-               $params = array();
-
-               $params['campaign'] = "Campaign name. Separate multiple values 
with a \"|\" (vertical bar).";
-
-               return $params;
-       }
-
-       /**
-        * @deprecated since MediaWiki core 1.25
-        */
-       public function getDescription() {
-               return 'Get all configuration settings for a campaign.';
-       }
-
-       /**
-        * Example API calls.
-        *
-        * @deprecated since MediaWiki core 1.25
-        * @return array|bool|string
-        */
-       public function getExamples() {
-               return 
"api.php?action=centralnoticequerycampaign&format=json&campaign=Plea_US";
-       }
-
-       /**
         * @see ApiBase::getExamplesMessages()
         */
        protected function getExamplesMessages() {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I21fbef2edb2f4bfcb029919ea5e96ae62e6da5bf
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/CentralNotice
Gerrit-Branch: master
Gerrit-Owner: Anomie <bjor...@wikimedia.org>
Gerrit-Reviewer: AndyRussG <andrew.green...@gmail.com>
Gerrit-Reviewer: Awight <awi...@wikimedia.org>
Gerrit-Reviewer: Cdentinger <cdentin...@wikimedia.org>
Gerrit-Reviewer: Ejegg <eeggles...@wikimedia.org>
Gerrit-Reviewer: Jforrester <jforres...@wikimedia.org>
Gerrit-Reviewer: Ssmith <ssm...@wikimedia.org>
Gerrit-Reviewer: XenoRyet <dkozlow...@wikimedia.org>
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