]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: rm the cast operator of md_config_cacher_t 60668/head
authorRonen Friedman <rfriedma@redhat.com>
Thu, 14 Nov 2024 12:12:23 +0000 (06:12 -0600)
committerRonen Friedman <rfriedma@redhat.com>
Tue, 19 Nov 2024 13:47:08 +0000 (07:47 -0600)
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 <rfriedma@redhat.com>
src/common/config_cacher.h

index 206cfa7026384a81561ef1ffc6f6804bc5f84685..91b8152dde102684b674a4633211d52cfc2fbce4 100644 (file)
@@ -50,10 +50,6 @@ public:
     conf.remove_observer(this);
   }
 
-  operator ValueT() const {
-    return value_cache.load();
-  }
-
   ValueT operator*() const {
     return value_cache.load();
   }