]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/crimson/common/formatter.cc
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / crimson / common / formatter.cc
index 677216224ee81bd744f0ec9ae200aaccee30013c..ab371ddbfce09e8163f5ea1eab9c933cdba0d645 100644 (file)
@@ -29,24 +29,6 @@ struct fmt::formatter<seastar::lowres_system_clock::time_point> {
   }
 };
 
-template <>
-struct fmt::formatter<ceph::coarse_real_clock::time_point> {
-  // ignore the format string
-  template <typename ParseContext>
-  constexpr auto parse(ParseContext &ctx) { return ctx.begin(); }
-
-  template <typename FormatContext>
-  auto format(const ceph::coarse_real_clock::time_point& t,
-              FormatContext& ctx) {
-    std::time_t tt = std::chrono::duration_cast<std::chrono::seconds>(
-      t.time_since_epoch()).count();
-    auto milliseconds = (t.time_since_epoch() %
-                         std::chrono::seconds(1)).count();
-    return fmt::format_to(ctx.out(), "{:%Y-%m-%d %H:%M:%S} {:03d}",
-                          fmt::localtime(tt), milliseconds);
-  }
-};
-
 namespace std {
 
 ostream& operator<<(ostream& out,
@@ -55,10 +37,4 @@ ostream& operator<<(ostream& out,
   return out << fmt::format("{}", t);
 }
 
-ostream& operator<<(ostream& out,
-                    const ceph::coarse_real_clock::time_point& t)
-{
-  return out << fmt::format("{}", t);
-}
-
 }