Anomie has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/311776

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
---
M api/ApiCentralNoticeLogs.php
M api/ApiCentralNoticeQueryCampaign.php
2 files changed, 0 insertions(+), 61 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralNotice 
refs/changes/76/311776/1

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: newchange
Gerrit-Change-Id: I21fbef2edb2f4bfcb029919ea5e96ae62e6da5bf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralNotice
Gerrit-Branch: master
Gerrit-Owner: Anomie <bjor...@wikimedia.org>

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

Reply via email to