aboutsummaryrefslogtreecommitdiffstats
path: root/includes/user/BotPassword.php
diff options
context:
space:
mode:
authorDannyS712 <dannys712.wiki@gmail.com>2021-07-15 04:17:10 +0000
committerDannyS712 <dannys712.wiki@gmail.com>2021-07-15 04:19:07 +0000
commit2f802e82c80019669231114d7e9ffafc27f42f9c (patch)
tree4926febe05e09918f0877e30fb2be64e49c9ad29 /includes/user/BotPassword.php
parente455352a0499d13cb603bb9b1fcd74df3f57218b (diff)
downloadmediawikicore-2f802e82c80019669231114d7e9ffafc27f42f9c.tar.gz
mediawikicore-2f802e82c80019669231114d7e9ffafc27f42f9c.zip
Deprecate unused BotPassword methods
BotPassword::invalidateAllPasswordsForCentralId() and BotPassword::removeAllPasswordsForCentralId() are no longer used following introduction of BotPasswordStore. Bug: T265769 Change-Id: I77589032a8b771d1e111e8adbee3600f181fedbc
Diffstat (limited to 'includes/user/BotPassword.php')
-rw-r--r--includes/user/BotPassword.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/includes/user/BotPassword.php b/includes/user/BotPassword.php
index 46117a367fae..565155f04605 100644
--- a/includes/user/BotPassword.php
+++ b/includes/user/BotPassword.php
@@ -344,12 +344,14 @@ class BotPassword implements IDBAccessObject {
/**
* Invalidate all passwords for a user, by central ID
*
- * Currently unused entirely, to be hard deprecated
+ * @deprecated since 1.37
*
* @param int $centralId
* @return bool Whether any passwords were invalidated
*/
public static function invalidateAllPasswordsForCentralId( $centralId ) {
+ wfDeprecated( __METHOD__, '1.37' );
+
global $wgEnableBotPasswords;
if ( !$wgEnableBotPasswords ) {
@@ -380,12 +382,14 @@ class BotPassword implements IDBAccessObject {
/**
* Remove all passwords for a user, by central ID
*
- * Currently unused entirely, to be hard deprecated
+ * @deprecated since 1.37
*
* @param int $centralId
* @return bool Whether any passwords were removed
*/
public static function removeAllPasswordsForCentralId( $centralId ) {
+ wfDeprecated( __METHOD__, '1.37' );
+
global $wgEnableBotPasswords;
if ( !$wgEnableBotPasswords ) {