From b7ff9dfe0c83014e9aef115ced870b2655c6ea0f Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Mon, 10 May 2021 15:07:17 -0700 Subject: [PATCH] Drop global function wfConfiguredReadOnlyReason, deprecated in 1.36 No uses known in code search. Bug: T264979 Change-Id: Ifcc375333fb5b1e46b9198462d67d34673b92e5f --- RELEASE-NOTES-1.37 | 1 + includes/GlobalFunctions.php | 13 ------------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/RELEASE-NOTES-1.37 b/RELEASE-NOTES-1.37 index 806320767e3..cb0df9b4658 100644 --- a/RELEASE-NOTES-1.37 +++ b/RELEASE-NOTES-1.37 @@ -208,6 +208,7 @@ because of Phabricator reports. * The following global methods, each deprecated since 1.36, have been removed: - wfAppendToArrayIfNotDefault - wfAcceptToPrefs + - wfConfiguredReadOnlyReason - wfDebugMem * – diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 69c03cb3778..db6a1dde1b7 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1114,19 +1114,6 @@ function wfReadOnlyReason() { ->getReason(); } -/** - * Get the value of $wgReadOnly or the contents of $wgReadOnlyFile. - * - * @return string|bool String when in read-only mode; false otherwise - * @since 1.27 - * @deprecated since 1.36 - */ -function wfConfiguredReadOnlyReason() { - wfDeprecated( __FUNCTION__, '1.36' ); - return MediaWikiServices::getInstance()->getConfiguredReadOnlyMode() - ->getReason(); -} - /** * Return a Language object from $langcode *