diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2022-01-02 21:59:37 +0100 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2022-01-02 21:59:37 +0100 |
commit | 76f9412dcd9e0553b27e8879868135bf3518b16f (patch) | |
tree | a9ee498ecf720330b82c4a997410786e917999b9 | |
parent | d93c6da94c9bbce8929807edc2d697753b6b3e7f (diff) |
Remove deprecated global function wfIncrStats
Bug: T250316
Change-Id: Ibe8294fb9b55f5061a7b3522ddcbc8ea6d3b75fa
-rw-r--r-- | RELEASE-NOTES-1.38 | 1 | ||||
-rw-r--r-- | includes/GlobalFunctions.php | 16 |
2 files changed, 1 insertions, 16 deletions
diff --git a/RELEASE-NOTES-1.38 b/RELEASE-NOTES-1.38 index 8784f5f33c8f..a2cb173ebf4b 100644 --- a/RELEASE-NOTES-1.38 +++ b/RELEASE-NOTES-1.38 @@ -293,6 +293,7 @@ because of Phabricator reports. - ::$mHebrewCalendarMonthMsgs → HEBREW_CALENDAR_MONTHS_MESSAGES - ::$mHebrewCalendarMonthGenMsgs → HEBREW_CALENDAR_MONTH_GENITIVE_MESSAGES - ::$mHijriCalendarMonthMsgs → HIJRI_CALENDAR_MONTH_MESSAGES +* wfIncrStats, deprecated since 1.36, has been removed. * … === Deprecations in 1.38 === diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index cfab5c677432..0a6ddc9733b1 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1073,22 +1073,6 @@ function wfLogProfilingData() { } /** - * Increment a statistics counter - * - * @param string $key - * @param int $count - * @return void - * - * @deprecated since 1.36 (emits deprecation warnings since 1.37), - * use MediaWikiServices::getInstance()->getStatsdDataFactory()->updateCount() instead - */ -function wfIncrStats( $key, $count = 1 ) { - wfDeprecated( __FUNCTION__, '1.36' ); - $stats = MediaWikiServices::getInstance()->getStatsdDataFactory(); - $stats->updateCount( $key, $count ); -} - -/** * Check whether the wiki is in read-only mode. * * @deprecated since 1.38, use ReadOnlyMode::isReadOnly() instead |