diff options
Diffstat (limited to 'src/common/ceph_time.h')
-rw-r--r-- | src/common/ceph_time.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/common/ceph_time.h b/src/common/ceph_time.h index a2018703a27..ae4a17c7812 100644 --- a/src/common/ceph_time.h +++ b/src/common/ceph_time.h @@ -18,7 +18,6 @@ #include <chrono> #include <iostream> #include <string> -#include <optional> #include <sys/time.h> #include "include/ceph_assert.h" @@ -435,9 +434,6 @@ namespace ceph { return std::chrono::duration_cast<timespan>( std::chrono::duration<double>(d)); } - inline std::optional<timespan> maybe_timespan(const double d) { - return d ? std::make_optional(make_timespan(d)) : std::nullopt; - } } std::ostream& operator<<(std::ostream& m, const timespan& t); |