utils/mu-date: remove

Remove mu-date.[ch] and convert its last users to use time_to_string instead.
This commit is contained in:
Dirk-Jan C. Binnema
2022-02-22 22:48:29 +02:00
parent a51272a2e6
commit af87cde217
9 changed files with 133 additions and 294 deletions

View File

@ -38,7 +38,6 @@
#include "utils/mu-util.h"
#include "utils/mu-str.h"
#include "utils/mu-date.h"
#include "utils/mu-error.hh"
@ -164,8 +163,10 @@ view_msg_plain(MuMsg* msg, const MuConfig* opts)
print_field("Bcc", mu_msg_get_bcc(msg), color);
print_field("Subject", mu_msg_get_subject(msg), color);
if ((date = mu_msg_get_date(msg)))
print_field("Date", mu_date_str_s("%c", date), color);
if ((date = mu_msg_get_date(msg))) {
const auto dstr{time_to_string("%c", date)};
print_field("Date", dstr.c_str(), color);
}
if ((lst = mu_msg_get_tags(msg))) {
gchar* tags;