Nikerabbit has uploaded a new change for review.
https://gerrit.wikimedia.org/r/126988
Change subject: Remove unneeded getVersion methods
......................................................................
Remove unneeded getVersion methods
Change-Id: I3329d5215591fb309d120f1cbda15911f4fc194e
---
M api/ApiAggregateGroups.php
M api/ApiGroupReview.php
M api/ApiHardMessages.php
M api/ApiQueryMessageCollection.php
M api/ApiQueryMessageGroups.php
M api/ApiQueryMessageTranslations.php
M api/ApiQueryTranslationAids.php
M api/ApiStatsQuery.php
M api/ApiTTMServer.php
M api/ApiTranslateSandbox.php
M api/ApiTranslateUser.php
M api/ApiTranslationReview.php
M api/ApiTranslationStash.php
13 files changed, 0 insertions(+), 54 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate
refs/changes/88/126988/1
diff --git a/api/ApiAggregateGroups.php b/api/ApiAggregateGroups.php
index e480546..1afc218 100644
--- a/api/ApiAggregateGroups.php
+++ b/api/ApiAggregateGroups.php
@@ -213,10 +213,6 @@
);
}
- public function getVersion() {
- return __CLASS__ . ': ' . TRANSLATE_VERSION;
- }
-
public static function getAllPages() {
$groups = MessageGroups::getAllGroups();
$pages = array();
diff --git a/api/ApiGroupReview.php b/api/ApiGroupReview.php
index ce611ef..7bbe3f4 100644
--- a/api/ApiGroupReview.php
+++ b/api/ApiGroupReview.php
@@ -190,10 +190,6 @@
);
}
- public function getVersion() {
- return __CLASS__ . ': ' . TRANSLATE_VERSION;
- }
-
public static function getToken() {
$user = RequestContext::getMain()->getUser();
if ( !$user->isAllowed( self::$right ) ) {
diff --git a/api/ApiHardMessages.php b/api/ApiHardMessages.php
index 0ca842d..cc59e51 100644
--- a/api/ApiHardMessages.php
+++ b/api/ApiHardMessages.php
@@ -161,10 +161,6 @@
);
}
- public function getVersion() {
- return __CLASS__ . ': ' . TRANSLATE_VERSION;
- }
-
public static function getToken() {
$user = RequestContext::getMain()->getUser();
if ( !$user->isAllowed( self::$right ) ) {
diff --git a/api/ApiQueryMessageCollection.php
b/api/ApiQueryMessageCollection.php
index 63681b9..eed7f39 100644
--- a/api/ApiQueryMessageCollection.php
+++ b/api/ApiQueryMessageCollection.php
@@ -284,8 +284,4 @@
"More information about latest translation
revisions for group $group",
);
}
-
- public function getVersion() {
- return __CLASS__ . ': ' . TRANSLATE_VERSION;
- }
}
diff --git a/api/ApiQueryMessageGroups.php b/api/ApiQueryMessageGroups.php
index c98c4e5..17f2c7c 100644
--- a/api/ApiQueryMessageGroups.php
+++ b/api/ApiQueryMessageGroups.php
@@ -358,8 +358,4 @@
'api.php?action=query&meta=messagegroups',
);
}
-
- public function getVersion() {
- return __CLASS__ . ': ' . TRANSLATE_VERSION;
- }
}
diff --git a/api/ApiQueryMessageTranslations.php
b/api/ApiQueryMessageTranslations.php
index 0ece39f..9c9206d 100644
--- a/api/ApiQueryMessageTranslations.php
+++ b/api/ApiQueryMessageTranslations.php
@@ -156,8 +156,4 @@
"List of translations in the wiki for
MediaWiki:January",
);
}
-
- public function getVersion() {
- return __CLASS__ . ': ' . TRANSLATE_VERSION;
- }
}
diff --git a/api/ApiQueryTranslationAids.php b/api/ApiQueryTranslationAids.php
index d9e501a..de31aef 100644
--- a/api/ApiQueryTranslationAids.php
+++ b/api/ApiQueryTranslationAids.php
@@ -125,8 +125,4 @@
"api.php?action=translationaids&title=MediaWiki:January/fi",
);
}
-
- public function getVersion() {
- return __CLASS__ . ': ' . TRANSLATE_VERSION;
- }
}
diff --git a/api/ApiStatsQuery.php b/api/ApiStatsQuery.php
index 8a57d32..7abbdd0 100644
--- a/api/ApiStatsQuery.php
+++ b/api/ApiStatsQuery.php
@@ -74,8 +74,4 @@
'zero, only the cached results from the
beginning are returned.',
);
}
-
- public function getVersion() {
- return __CLASS__ . ': ' . TRANSLATE_VERSION;
- }
}
diff --git a/api/ApiTTMServer.php b/api/ApiTTMServer.php
index 37254ed..bad1f81 100644
--- a/api/ApiTTMServer.php
+++ b/api/ApiTTMServer.php
@@ -93,8 +93,4 @@
'api.php?action=ttmserver&sourcelanguage=en&targetlanguage=fi&text=Help',
);
}
-
- public function getVersion() {
- return __CLASS__ . ': ' . TRANSLATE_VERSION;
- }
}
diff --git a/api/ApiTranslateSandbox.php b/api/ApiTranslateSandbox.php
index 2aa267b..6256b5b 100644
--- a/api/ApiTranslateSandbox.php
+++ b/api/ApiTranslateSandbox.php
@@ -243,9 +243,4 @@
return true;
}
-
- // BC for MW 1.20
- public function getVersion() {
- return __CLASS__ . ': ' . TRANSLATE_VERSION;
- }
}
diff --git a/api/ApiTranslateUser.php b/api/ApiTranslateUser.php
index 96c5a5b..31aa7bb 100644
--- a/api/ApiTranslateUser.php
+++ b/api/ApiTranslateUser.php
@@ -38,10 +38,6 @@
);
}
- public function getVersion() {
- return '2012-11-30';
- }
-
/**
* Keeps track of recently used message groups per user.
*/
diff --git a/api/ApiTranslationReview.php b/api/ApiTranslationReview.php
index 7540c96..09bc617 100644
--- a/api/ApiTranslationReview.php
+++ b/api/ApiTranslationReview.php
@@ -197,10 +197,6 @@
);
}
- public function getVersion() {
- return __CLASS__ . ': ' . TRANSLATE_VERSION;
- }
-
public static function getToken() {
$user = RequestContext::getMain()->getUser();
if ( !$user->isAllowed( self::$right ) ) {
diff --git a/api/ApiTranslationStash.php b/api/ApiTranslationStash.php
index 29db894..268a931 100644
--- a/api/ApiTranslationStash.php
+++ b/api/ApiTranslationStash.php
@@ -163,9 +163,4 @@
"api.php?action=translationstash&subaction=query",
);
}
-
- // BC for old MW
- public function getVersion() {
- return __CLASS__ . ': ' . TRANSLATE_VERSION;
- }
}
--
To view, visit https://gerrit.wikimedia.org/r/126988
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3329d5215591fb309d120f1cbda15911f4fc194e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits