diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2021-04-18 13:47:24 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-18 14:18:16 +0200 |
commit | db8f0a2fa68b619471f480a3eb6f28054370f344 (patch) | |
tree | e05611a3725c89942180e82f65e5583351d49770 /Userland/Libraries/LibCore/DateTime.cpp | |
parent | 38f4441103a999eef503a12bbe6cdf925207edec (diff) | |
download | serenity-db8f0a2fa68b619471f480a3eb6f28054370f344.zip |
LibCore: Remove the no-longer-used Core::DateTime::is_before() function
Diffstat (limited to 'Userland/Libraries/LibCore/DateTime.cpp')
-rw-r--r-- | Userland/Libraries/LibCore/DateTime.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Userland/Libraries/LibCore/DateTime.cpp b/Userland/Libraries/LibCore/DateTime.cpp index 4e9a8ec345..064f3b460e 100644 --- a/Userland/Libraries/LibCore/DateTime.cpp +++ b/Userland/Libraries/LibCore/DateTime.cpp @@ -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; -} - } |