Skip to content

Commit

Permalink
common: rm the cast operator of md_config_cacher_t
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ronen-fr authored and Piyush Agarwal committed Nov 26, 2024
1 parent c1d3d2b commit b035165
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/common/config_cacher.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ class md_config_cacher_t : public md_config_obs_t {
conf.remove_observer(this);
}

operator ValueT() const {
return value_cache.load();
}

ValueT operator*() const {
return value_cache.load();
}
Expand Down

0 comments on commit b035165

Please sign in to comment.