utils: Unused methods are marked as deprecated

The getAllAncestors and deleteAllDbusObjects methods in utils.hpp are
not used and are not used in the reops. This commit marks these
methods as deprecated marked for removal after 2025-03-30 unless
disputed.

Tested: ipmitool works fine with this patch.

Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: Icd53a9effc53c12b5db05b90b75c3addf6c02d5b
diff --git a/include/ipmid/utils.hpp b/include/ipmid/utils.hpp
index e47c85d..dd1eaa0 100644
--- a/include/ipmid/utils.hpp
+++ b/include/ipmid/utils.hpp
@@ -199,7 +199,8 @@
  */
 void deleteAllDbusObjects(sdbusplus::bus_t& bus, const std::string& serviceRoot,
                           const std::string& interface,
-                          const std::string& match = {});
+                          const std::string& match = {})
+    __attribute__((deprecated));
 
 /** @brief Gets the ancestor objects of the given object
            which implements the given interface.
@@ -209,7 +210,8 @@
  *  @return map of object path and service info.
  */
 ObjectTree getAllAncestors(sdbusplus::bus_t& bus, const std::string& path,
-                           InterfaceList&& interfaces);
+                           InterfaceList&& interfaces)
+    __attribute__((deprecated));
 
 /********* Begin co-routine yielding alternatives ***************/
 
@@ -369,7 +371,8 @@
 boost::system::error_code deleteAllDbusObjects(Context::ptr ctx,
                                                const std::string& serviceRoot,
                                                const std::string& interface,
-                                               const std::string& match = {});
+                                               const std::string& match = {})
+    __attribute__((deprecated));
 
 /** @brief Gets all managed objects associated with the given object
  *         path and service.
@@ -392,10 +395,10 @@
  *  @param[out] ObjectTree - map of object path and service info.
  *  @return - boost error code object
  */
-boost::system::error_code getAllAncestors(Context::ptr ctx,
-                                          const std::string& path,
-                                          const InterfaceList& interfaces,
-                                          ObjectTree& objectTree);
+boost::system::error_code
+    getAllAncestors(Context::ptr ctx, const std::string& path,
+                    const InterfaceList& interfaces, ObjectTree& objectTree)
+        __attribute__((deprecated));
 
 /** @brief Gets the value associated with the given object
  *         and the interface.