From: Michal Jarzabek Date: Sun, 28 Aug 2016 06:32:04 +0000 (+0100) Subject: common/Throttle.h: remove unneeded class X-Git-Tag: v11.0.1~368^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c1abdae84dd01f46207c5e9a418af9d298341b29;p=ceph.git common/Throttle.h: remove unneeded class Signed-off-by: Michal Jarzabek --- diff --git a/src/common/Throttle.h b/src/common/Throttle.h index f182c0c8797d6..cafe0d9a1160a 100644 --- a/src/common/Throttle.h +++ b/src/common/Throttle.h @@ -242,17 +242,6 @@ private: bool m_ignore_enoent; }; -class C_SimpleThrottle : public Context { -public: - C_SimpleThrottle(SimpleThrottle *throttle) : m_throttle(throttle) { - m_throttle->start_op(); - } - virtual void finish(int r) { - m_throttle->end_op(r); - } -private: - SimpleThrottle *m_throttle; -}; class OrderedThrottle;