mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibCore: Remove the no-longer-used Core::DateTime::is_before() function
This commit is contained in:
parent
38f4441103
commit
db8f0a2fa6
Notes:
sideshowbarker
2024-07-18 19:27:44 +09:00
Author: https://github.com/alimpfard
Commit: db8f0a2fa6
Pull-request: https://github.com/SerenityOS/serenity/pull/6443
Reviewed-by: https://github.com/awesomekling
2 changed files with 0 additions and 9 deletions
|
@ -249,10 +249,4 @@ String DateTime::to_string(const String& format) const
|
|||
return builder.build();
|
||||
}
|
||||
|
||||
bool DateTime::is_before(const String& other) const
|
||||
{
|
||||
auto now_string = String::formatted("{:04}{:02}{:02}{:02}{:02}{:02}Z", year(), month(), weekday(), hour(), minute(), second());
|
||||
return __builtin_strcasecmp(now_string.characters(), other.characters()) < 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -56,9 +56,6 @@ public:
|
|||
static DateTime now();
|
||||
static DateTime from_timestamp(time_t);
|
||||
|
||||
// FIXME: This should be replaced with a proper comparison
|
||||
// operator when we get the equivalent of strptime
|
||||
bool is_before(const String&) const;
|
||||
bool operator<(const DateTime& other) const { return m_timestamp < other.m_timestamp; }
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue