remove unnessecary logging
This commit is contained in:
parent
d2a1f41750
commit
ecba117dc0
|
@ -157,13 +157,11 @@ auto waybar::modules::Clock::weekdays_header(const date::weekday& first_dow, std
|
||||||
Glib::ustring wd_ustring(date::format(locale_, "%a", wd));
|
Glib::ustring wd_ustring(date::format(locale_, "%a", wd));
|
||||||
auto clen = ustring_clen(wd_ustring);
|
auto clen = ustring_clen(wd_ustring);
|
||||||
auto wd_len = wd_ustring.length();
|
auto wd_len = wd_ustring.length();
|
||||||
fmt::print("{} {}\n", clen, wd_len);
|
|
||||||
while (clen > 2) {
|
while (clen > 2) {
|
||||||
wd_ustring = wd_ustring.substr(0, wd_len-1);
|
wd_ustring = wd_ustring.substr(0, wd_len-1);
|
||||||
wd_len--;
|
wd_len--;
|
||||||
clen = ustring_clen(wd_ustring);
|
clen = ustring_clen(wd_ustring);
|
||||||
}
|
}
|
||||||
fmt::print("{} {}", clen, wd_len);
|
|
||||||
const std::string pad(2 - clen, ' ');
|
const std::string pad(2 - clen, ' ');
|
||||||
os << pad << wd_ustring;
|
os << pad << wd_ustring;
|
||||||
} while (++wd != first_dow);
|
} while (++wd != first_dow);
|
||||||
|
|
Loading…
Reference in New Issue