diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-08-28 13:58:23 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-08-28 13:58:23 +0000 |
commit | 81ae96dc2f3164b024ae57719bb1ebdcfbf813d0 (patch) | |
tree | 130e5358bc18923d7e4e55d74cb936a19c582399 /metrics | |
parent | bd5fa1d77691b408a52de516657dc7e7410be81d (diff) |
- Remove methods not used.
- Remove parameters not used.
- Make template parameter runtime parameter.
Diffstat (limited to 'metrics')
-rw-r--r-- | metrics/src/vespa/metrics/metricsnapshot.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/metrics/src/vespa/metrics/metricsnapshot.h b/metrics/src/vespa/metrics/metricsnapshot.h index 859ee4a4a97..ae0fd92d187 100644 --- a/metrics/src/vespa/metrics/metricsnapshot.h +++ b/metrics/src/vespa/metrics/metricsnapshot.h @@ -94,9 +94,7 @@ public: MetricSnapshot& getSnapshot(bool temporary) { return *((temporary && _count > 1) ? _building : _current); } - const MetricSnapshot& getSnapshot() const { - return getSnapshot(false); - } + const MetricSnapshot& getSnapshot(bool temporary) const { return *((temporary && _count > 1) ? _building : _current); } |