From: Ronen Friedman Date: Thu, 14 Nov 2024 12:12:23 +0000 (-0600) Subject: common: rm the cast operator of md_config_cacher_t X-Git-Tag: v20.0.0~649^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f92042853a014a9a1538a17a97ee33c775671aa3;p=ceph.git common: rm the cast operator of md_config_cacher_t as its replacement - the type-deduced operator() - is now in use, and the resulting code is more readable and less error-prone. Signed-off-by: Ronen Friedman --- diff --git a/src/common/config_cacher.h b/src/common/config_cacher.h index 206cfa7026384..91b8152dde102 100644 --- a/src/common/config_cacher.h +++ b/src/common/config_cacher.h @@ -50,10 +50,6 @@ public: conf.remove_observer(this); } - operator ValueT() const { - return value_cache.load(); - } - ValueT operator*() const { return value_cache.load(); }