clang-tidy: Remove unused lambda captures

The following errors were reported during clang-tidy enablement due
to unused lambda captures.

'''
functions.cpp:769:10: [0m[0;1;31merror: [0m[1mlambda capture 'pldmPath' is not used [-Werror,-Wunused-lambda-capture]
'''

The fix involves removing these unused lambda captures.

Tested: Build and unit testing verified.

Change-Id: Ie2e28d4af2ad8eac2886c0202e98099ab3b82fc4
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>
diff --git a/functions.cpp b/functions.cpp
index 0d2b34c..ef6b5f6 100644
--- a/functions.cpp
+++ b/functions.cpp
@@ -743,7 +743,6 @@
     std::map<std::string, std::vector<std::string>> extensionMap,
     std::filesystem::path elementsJsonFilePath, sdeventplus::Event& loop)
 {
-    constexpr auto pldmPath = "/xyz/openbmc_project/pldm";
     constexpr auto entityManagerServiceName =
         "xyz.openbmc_project.EntityManager";
 
@@ -766,8 +765,8 @@
         sdbusplus::bus::match::rules::interfacesAdded() +
             sdbusplus::bus::match::rules::sender(
                 "xyz.openbmc_project.EntityManager"),
-        [pldmPath, pExtensionMap, pElementsJsonFilePath,
-         maybeSetAttrWithArgsBound, &loop](auto& message) {
+        [pExtensionMap, pElementsJsonFilePath, maybeSetAttrWithArgsBound,
+         &loop](auto& message) {
             if (maybeCallMessage(message, maybeSetAttrWithArgsBound))
             {
                 loop.exit(0);