diff options
author | Derick Alangi <alangiderick@gmail.com> | 2021-12-20 23:12:38 +0100 |
---|---|---|
committer | James D. Forrester <jforrester@wikimedia.org> | 2021-12-21 10:38:00 +0000 |
commit | 3a2d2cddc2d03eac88ea81b1caf89ea995b89088 (patch) | |
tree | 42788360a449048c77a7532dc3eeda4d6417e5ae | |
parent | e96c43e5d0592d14a07d7b765ee19dd4cdc72dec (diff) |
Language: Remove unused, deprecated class members & constants
Change-Id: I57c2cacd0211cf0548e45d8a0c43dd7d47a7b2d4
-rw-r--r-- | RELEASE-NOTES-1.38 | 11 | ||||
-rw-r--r-- | includes/language/Language.php | 42 |
2 files changed, 11 insertions, 42 deletions
diff --git a/RELEASE-NOTES-1.38 b/RELEASE-NOTES-1.38 index cec7043219c4..80191889c267 100644 --- a/RELEASE-NOTES-1.38 +++ b/RELEASE-NOTES-1.38 @@ -276,6 +276,17 @@ because of Phabricator reports. - ::dataSeek() soft-deprecated since 1.37 - ::onTransactionIdle() soft-deprecated since 1.32 - ::getMasterPos() since 1.37 +* Language::AS_AUTONYMS, deprecated since 1.34, has been removed. You can use + the LanguageNameUtils::AUTONYMS constant instead. +* Several Language class variables deprecated in 1.35 have been removed; they + are each replaced by a constant, as listed after the arrow: + - ::$mWeekdayMsgs → WEEKDAY_MESSAGES + - ::$mWeekdayAbbrevMsg → WEEKDAY_ABBREVIATED_MESSAGES + - ::$mMonthGenMsgs → MONTH_GENITIVE_MESSAGES + - ::$mIranianCalendarMonthMsgs → IRANIAN_CALENDAR_MONTHS_MESSAGES + - ::$mHebrewCalendarMonthMsgs → HEBREW_CALENDAR_MONTHS_MESSAGES + - ::$mHebrewCalendarMonthGenMsgs → HEBREW_CALENDAR_MONTH_GENITIVE_MESSAGES + - ::$mHijriCalendarMonthMsgs → HIJRI_CALENDAR_MONTH_MESSAGES * … === Deprecations in 1.38 === diff --git a/includes/language/Language.php b/includes/language/Language.php index 1fddb08a3c5e..cba04ed917b3 100644 --- a/includes/language/Language.php +++ b/includes/language/Language.php @@ -41,13 +41,6 @@ use Wikimedia\Assert\Assert; */ class Language { /** - * Return autonyms in fetchLanguageName(s). - * @since 1.32 - * @deprecated since 1.34, LanguageNameUtils::AUTONYMS - */ - public const AS_AUTONYMS = LanguageNameUtils::AUTONYMS; - - /** * Return all known languages in fetchLanguageName(s). * @since 1.32 * @deprecated since 1.34, use LanguageNameUtils::ALL @@ -143,11 +136,6 @@ class Language { ]; /** - * @deprecated since 1.35, use the WEEKDAY_MESSAGES constant - */ - public static $mWeekdayMsgs = self::WEEKDAY_MESSAGES; - - /** * @since 1.35 */ public const WEEKDAY_ABBREVIATED_MESSAGES = [ @@ -155,11 +143,6 @@ class Language { ]; /** - * @deprecated since 1.35, use the WEEKDAY_ABBREVIATED_MESSAGES constant - */ - public static $mWeekdayAbbrevMsgs = self::WEEKDAY_ABBREVIATED_MESSAGES; - - /** * @since 1.35 */ public const MONTH_MESSAGES = [ @@ -183,11 +166,6 @@ class Language { ]; /** - * @deprecated since 1.35, use the MONTH_GENITIVE_MESSAGES constant - */ - public static $mMonthGenMsgs = self::MONTH_GENITIVE_MESSAGES; - - /** * @since 1.35 */ public const MONTH_ABBREVIATED_MESSAGES = [ @@ -211,11 +189,6 @@ class Language { ]; /** - * @deprecated since 1.35, use the IRANIAN_CALENDAR_MONTHS_MESSAGES constant - */ - public static $mIranianCalendarMonthMsgs = self::IRANIAN_CALENDAR_MONTHS_MESSAGES; - - /** * @since 1.35 */ public const HEBREW_CALENDAR_MONTHS_MESSAGES = [ @@ -227,11 +200,6 @@ class Language { ]; /** - * @deprecated since 1.35, use the HEBREW_CALENDAR_MONTHS_MESSAGES constant - */ - public static $mHebrewCalendarMonthMsgs = self::HEBREW_CALENDAR_MONTHS_MESSAGES; - - /** * @since 1.35 */ public const HEBREW_CALENDAR_MONTH_GENITIVE_MESSAGES = [ @@ -243,11 +211,6 @@ class Language { ]; /** - * @deprecated since 1.35, use the HEBREW_CALENDAR_MONTH_GENITIVE_MESSAGES constant - */ - public static $mHebrewCalendarMonthGenMsgs = self::HEBREW_CALENDAR_MONTH_GENITIVE_MESSAGES; - - /** * @since 1.35 */ public const HIJRI_CALENDAR_MONTH_MESSAGES = [ @@ -258,11 +221,6 @@ class Language { ]; /** - * @deprecated since 1.35, use the HIJRI_CALENDAR_MONTH_MESSAGES constant - */ - public static $mHijriCalendarMonthMsgs = self::HIJRI_CALENDAR_MONTH_MESSAGES; - - /** * @since 1.35 */ protected const DURATION_INTERVALS = [ |