From 482b7b6d3f2a66a8f48cff7e97e05651bf795765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Wed, 10 Sep 2025 15:33:46 +0900 Subject: [PATCH] Change class name I suggested it myself but on revisiting it's a bit of a mouthful. --- osu.Game/Graphics/DrawableDate.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/osu.Game/Graphics/DrawableDate.cs b/osu.Game/Graphics/DrawableDate.cs index a5171388c5..aa00a76bc3 100644 --- a/osu.Game/Graphics/DrawableDate.cs +++ b/osu.Game/Graphics/DrawableDate.cs @@ -72,7 +72,7 @@ namespace osu.Game.Graphics Scheduler.AddDelayed(updateTimeWithReschedule, timeUntilNextUpdate); } - protected virtual LocalisableString Format() => new LocalisableString(new HumanisedLocalisableDate(Date)); + protected virtual LocalisableString Format() => new LocalisableString(new HumanisedDate(Date)); private void updateTime() => Text = Format(); @@ -80,20 +80,20 @@ namespace osu.Game.Graphics public DateTimeOffset TooltipContent => Date; - private class HumanisedLocalisableDate : IEquatable, ILocalisableStringData + private class HumanisedDate : IEquatable, ILocalisableStringData { public readonly DateTimeOffset Date; - public HumanisedLocalisableDate(DateTimeOffset date) + public HumanisedDate(DateTimeOffset date) { Date = date; } - public bool Equals(HumanisedLocalisableDate? other) + public bool Equals(HumanisedDate? other) => other?.Date != null && Date.Equals(other.Date); public bool Equals(ILocalisableStringData? other) - => other is HumanisedLocalisableDate otherDate && Equals(otherDate); + => other is HumanisedDate otherDate && Equals(otherDate); public string GetLocalised(LocalisationParameters parameters) => HumanizerUtils.Humanize(Date);