summaryrefslogtreecommitdiffstats
path: root/metrics
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-08-28 13:58:23 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-08-28 13:58:23 +0000
commit81ae96dc2f3164b024ae57719bb1ebdcfbf813d0 (patch)
tree130e5358bc18923d7e4e55d74cb936a19c582399 /metrics
parentbd5fa1d77691b408a52de516657dc7e7410be81d (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.h4
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);
}