clang-tidy: Remove unused lambda captures
The following errors were reported during clang-tidy enablement due
to unused lambda captures.
'''
../src/metric.cpp:119:50: error: lambda capture 'this' is not used [-Werror
'''
The fix involves removing these unused lambda captures.
Tested: Build and unit testing verified.
Change-Id: I6a4b42ea3df7513e1208638f427007680e2a15cf
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
diff --git a/src/metric.cpp b/src/metric.cpp
index 9f32b59..9cc3d9f 100644
--- a/src/metric.cpp
+++ b/src/metric.cpp
@@ -116,7 +116,7 @@
LabeledMetricParameters Metric::dumpConfiguration() const
{
- auto sensorPath = utils::transform(sensors, [this](const auto& sensor) {
+ auto sensorPath = utils::transform(sensors, [](const auto& sensor) {
return LabeledSensorInfo(sensor->id().service, sensor->id().path,
sensor->metadata());
});