From 0f7add91c45ca652eaa79dd408b84e9bb1ce2d8c Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Tue, 15 Apr 2025 14:57:49 -0700 Subject: [PATCH] crimson/osd/osd_operation: remove unused with_throttle[_while] variants Signed-off-by: Samuel Just --- src/crimson/osd/osd_operation.h | 36 --------------------------------- 1 file changed, 36 deletions(-) diff --git a/src/crimson/osd/osd_operation.h b/src/crimson/osd/osd_operation.h index 6e75f2f826f25..6ae64b59c7d45 100644 --- a/src/crimson/osd/osd_operation.h +++ b/src/crimson/osd/osd_operation.h @@ -298,34 +298,6 @@ class OperationThrottler : public BlockerT, friend BlockerT; static constexpr const char* type_name = "OperationThrottler"; - template - auto with_throttle( - OperationT* op, - crimson::osd::scheduler::params_t params, - F &&f) { - if (!max_in_progress) return f(); - return acquire_throttle(params) - .then(std::forward(f)) - .then([this](auto x) { - release_throttle(); - return x; - }); - } - - template - seastar::future<> with_throttle_while( - OperationT* op, - crimson::osd::scheduler::params_t params, - F &&f) { - return with_throttle(op, params, f).then([this, params, op, f](bool cont) { - return cont - ? seastar::yield().then([params, op, f, this] { - return with_throttle_while(op, params, f); }) - : seastar::now(); - }); - } - - public: OperationThrottler(ConfigProxy &conf); @@ -350,14 +322,6 @@ public: }); } - template - seastar::future<> with_throttle_while( - BlockingEvent::Trigger&& trigger, - Args&&... args) { - return trigger.maybe_record_blocking( - with_throttle_while(std::forward(args)...), *this); - } - private: void dump_detail(Formatter *f) const final; -- 2.39.5