]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/scrubber: Clean up unused function add_double 60131/head
authorShreya Sapale <shreya17sapale@gmail.com>
Fri, 4 Oct 2024 21:37:58 +0000 (21:37 +0000)
committerShreya Sapale <shreya17sapale@gmail.com>
Fri, 4 Oct 2024 21:39:07 +0000 (21:39 +0000)
This commit removes the unused add_double function which was giving a compiler warning.

Fixes: https://tracker.ceph.com/issues/68009
Signed-off-by: Shreya Sapale <shreya17sapale@gmail.com>
src/osd/scrubber/scrub_job.cc

index 9e0d03b6ea47187399cdd3f40b5454fb792d57fc..a02ebe8fd44ec2b833d8b953e6d03cf9f32e9e04 100644 (file)
@@ -14,17 +14,6 @@ using ScrubJob = Scrub::ScrubJob;
 using delay_ready_t = Scrub::delay_ready_t;
 using namespace std::chrono;
 
-namespace {
-utime_t add_double(utime_t t, double d)
-{
-  double int_part;
-  double frac_as_ns = 1'000'000'000 * std::modf(d, &int_part);
-  return utime_t{
-      t.sec() + static_cast<int>(int_part),
-      static_cast<int>(t.nsec() + frac_as_ns)};
-}
-}  // namespace
-
 using SchedEntry = Scrub::SchedEntry;
 
 // ////////////////////////////////////////////////////////////////////////// //